Socket problem - readline won't work properly

后端 未结 5 1280
灰色年华
灰色年华 2020-12-11 13:09

I try to code a client and server connection using socket. The problem is my client can\'t read the response from the server (it hangs on the readline).

Here is some

5条回答
  •  旧时难觅i
    2020-12-11 13:28

    Could it be because clientResponse (sent by server thread) is null and the client is waiting for response size > 0?

提交回复
热议问题