// gets the communication mode
 public static UdpClient.mode GetCommunicationMode()
 {
     return(client.GetCommunicationMode());
 }