recv() socket function returning data with length as 0

后端 未结 8 2063
甜味超标
甜味超标 2020-12-24 07:55

I am having an application which established a socket connection on a port number 5005 with another device(hardware device with a web server).

Now if my hardware de

8条回答
  •  离开以前
    2020-12-24 08:48

    Agree with Robert S. Barnes. Except the claim that the socket is now "invalid".

    It's still valid. You can use it. You can even send data to the peer. The only thing you can't do with it is call recv.

提交回复
热议问题