Reading information from a port waits even though data available
问题 I am having a problem sending information down a socket and receiving a response. I have a demo program which is performing correctly so I know it is not an issue with the client on the other end. The requestData is sent and the client acts correctly and responds, but my code never exits the loop in read response. Could the client be responding before I am listening? How can I make sure I never miss an incoming message? networkStream = tcpClient.GetStream(); StreamWriter clientStreamWriter =