因为是在阻塞模式下,你可以用ioctlsocket来设置成异步的,
按照你的想法,你可以设置超时,即:
SO_RCVTIMEO int Receive time-out (available in Microsoft implementation of Windows Sockets 2)
按照你的想法,你可以设置超时,即:
SO_RCVTIMEO int Receive time-out (available in Microsoft implementation of Windows Sockets 2)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货