当我在 Windows 上的 listen()
套接字上执行 select()
时,它是非阻塞的。当有连接待处理时,我是否会收到读取事件或写入事件?
最佳答案
阅读。
来自MSDN :
The parameter readfds identifies the sockets that are to be checked for readability. If the socket is currently in the listen state, it will be marked as readable if an incoming connection request has been received such that an accept is guaranteed to complete without blocking.
关于WinSock select() 监听套接字,非阻塞 I/O?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4579449/