摘要: 用winsocket时,send(),recv()过程中有时由于网络状况等原因,收发不能预期进行,可以设置收发时限:int nNetTimeout = 1000; //1秒//发送时限setsockopt( socket, SOL_SOCKET, SO_SNDTIMEO, ( char * )&nN... 阅读全文