2014-12-07 128 views

回答

2

撥打setsockopt()SO_RCVTIMEO選項來設置套接字上的讀取超時。如果超時觸發,recvfrom()將返回-1並且errno == EAGAIN/EWOULDBLOCK

相關問題