title: TCP listener only receive the first message
body: <p>I wrote a TCP server to receive the messages from multiple iOS clients. However, it only receives the first TCP message and stops receiving the subsequent messages.What is the problem?</p>
  
  <pre><code>            int recv;
              byte[] data = new byte[1024];
              IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 8060);
              newsock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
              IPAddress ipadr = IPAddress.Parse("10.10.10.10");
              System.Net.IPEndPoint EndPoint = new System.Net.IPEndPoint(ipadr, 8060);
              newsock.Bind(EndPoint);
              newsock.Listen(255);
  
              while (true)
              {
                  Socket client = newsock.Accept();
                  recv = client.Receive(data,SocketFlags.None);
                  if (recv == 0)
                      break;
                  string receivedText = Encoding.ASCII.GetString(data, 0, recv);
                  Console.Write(receivedText);
              }
  
              newsock.Close();
  </code></pre>