[英]How to check XON/XOFF of the server from the client in c++ while using TCP/IP connection socket?
how to check XON/XOFF of the server, to check the socket is alive or not. 如何检查服务器的XON / XOFF,检查套接字是否存在。 there is a problem of TCP half close, where sending data but server is not receiving by being alive.
TCP存在半关闭问题,即发送数据但服务器未通过活动接收。 It is sending XON/XOFF for every 2 mins, is there any way that i detect and reconnect , if i don't get any signal?
它每2分钟发送一次XON / XOFF,如果我没有收到任何信号,有什么方法可以检测并重新连接?
如果服务器已经发送了保持活动信号,则请等待直到不再收到该信号为止(保持活动时间的两倍是安全值),然后重新连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.