/* * Waits for a request from the client */ public void WaitRequest(TcpClient client) { StreamReader read = new StreamReader(client.GetStream()); while(client.Connected()){ String s; if(s = read.ReadLine() != null){ HandleRequest(client, s); } } }