Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 在 Win32 中,有没有办法测试套接字是否是非阻塞的?
在 Unix 上,我可以使用 fcntl()。
是否有任何 Winsock API 可用于检查套接字是否处于阻塞模式?
Winsock 不幸(并且令人惊讶地)无法做到这一点。