windows平臺上無論利用socket()函式還是WSASocket()函式建立的socket都是阻塞模式的:[cpp] view plain copy
SOCKET WSAAPI socket(
_In_ int af,
_In_ int type,
_In_ int protocol
);
SOCKET WSASocket(
_In_ int protocol,
_In_ LPWSAPROTOCOL_INFO lpProtocolInfo,
_In_ GROUP g,
_In_ DWORD dwFlags
windows平臺上無論利用socket()函式還是WSASocket()函式建立的socket都是阻塞模式的:[cpp] view plain copy
SOCKET WSAAPI socket(
_In_ int af,
_In_ int type,
_In_ int protocol
);
SOCKET WSASocket(
_In_ int af,
_In_ int type,
_In_ int protocol,
_In_ LPWSAPROTOCOL_INFO lpProtocolInfo,
_In_ GROUP g,
_In_ DWORD dwFlags
);