setsockopt之 TCP_KEEPIDLE/TCP_KEEPINTVL/TCP_KEEPCNT
setsockopt之 TCP_KEEPIDLE/TCP_KEEPINTVL/TCP_KEEPCNT /*检测网线非法断开*/ setsockopt(iSockFd, SOL_SOCKET, SO_KEEPALIVE, (void*)&KeepAlive,sizeof(KeepAlive)); setsockopt(iSockFd, SOL_TCP, TCP_K...