先看看MSDN标准解释
int ioctlsocket( SOCKET s, long cmd, u_long FAR *argp );
Parameters
s
[in] Descriptor identifying a socket.
cmd
[in] Command to perform on the socket s.
argp
[in, out] Pointer to a parameter for cmd.
Return Values
Upon successful completion, the ioctlsocket returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.
Error code |
Meaning |
WSANOTINITIALISED |
A successful WSAS |