Group: Windows Sockets 2 (Winsock) - Library: ws2_32
How to build UDP responder
Winsock: retrieving the host information corresponding to a network address
Winsock: reading and setting socket options
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: connecting to a news server (NNTP, port 119)
How to create non-blocking Winsock server
Winsock: resolving an address to a host name
int WSAGetLastError (void);
DECLARE INTEGER WSAGetLastError IN ws2_32
This function has no parameters.
The return value indicates the error code for this thread"s last Windows Sockets operation that failed.
MSDN: a successful function call, or a call to WSAGetLastError, does not reset the error code. To reset the error code, use the WSASetLastError function call with iError set to zero.