好像没有API可以获取到当前的blocking/nonblocking mode.
但可以从 是否对socket执行了某些调用来判断。When a socket is created, it operates in blocking mode by default (nonblocking mode is disabled). The WSAAsyncSelect and WSAEventSelect functions automatically set a socket to nonblocking mode.
但可以从 是否对socket执行了某些调用来判断。When a socket is created, it operates in blocking mode by default (nonblocking mode is disabled). The WSAAsyncSelect and WSAEventSelect functions automatically set a socket to nonblocking mode.
http://stackoverflow.com/questions/5489562/in-win32-is-there-a-way-to-test-if-a-socket-is-non-blocking