Client prints Half Data Before Connection is Closed By Server on Socket
I have this scenario. I'm trying to use socket in C to send and receive
data. Client sends some string, server manipulates it, sends it back to
the client. Everything is fine but one small issue is: The client receives
only the first line from server, displays it and then halts till the
connection is closed by server after a time out. Although the bytes sent
by server = the bytes received by client. As soon as the connection is
closed, the rest of the string is displayed by the client.
I would like to know your thoughts and possible issues. Please let me know
if you ahve any questions.
Protocol used: TCP
No comments:
Post a Comment