Exemplo n.º 1
0
 private void receiveFromServer()
 {
     while (true)
     {
         Thread.Sleep(20);
         Communication.Communication.IPandMessage receiveMessage = Client.receiveMessage();
         if (receiveMessage == null)
         {
             continue;
         }
         MessageFromServer += "(" + receiveMessage.IP + ")-";
         byte[] receiveMessageBytes = receiveMessage.Message.ToArray();
         foreach (byte item in receiveMessageBytes)
         {
             MessageFromServer += "[" + item + "]";
         }
         MessageFromServer += "\r\n";
     }
 }