How to detect whether socket is still connected…From wget source code…booltest_socket_open (int sock){ fd_set check_set; struct timeval to; int ret = 0; /* Check if we still have a valid (non-EOF)...Read More
posted @ 2014-07-19 22:07 英超 Views(98) Comments(0) Edit