Beispiel #1
0
 public void ReceiveMessage()
 {
     while (isConnected)
     {
         string temp = client.ReadSocket();
         if (temp != null)
         {
             if (temp == "exit")
             {
                 isConnected = false;
                 break;
             }
             dataHolder.AddMessage(temp);
         }
     }
     client.CloseSocket();
     return;
 }