in reply to Sending a low-level query using sockets? (A confused newbie)

Your code presumes that the other side will send a newline terminated response and then close the socket. Perhaps this is not the case (i.e. it's sending a response and waiting for another query; or it's sending a response but it doesn't contain a newline character (or your platform's newline character))?

  • Comment on Re: Sending a low-level query using sockets? (A confused newbie)