WSADATA wsaData;
SOCKET ConnectSocket = INVALID_SOCKET;
iResult = WSAStartup(MAKEWORD(2,2), &wsaData);
WSADATA is info, but what info is it specifically?
WSAStartup is a function to initiate WS2_32.dll. What is the difference between initiating WS2_32.dll and SOCKET?
Please read the documentation, it tells you exactly what is in
WSADATAand what it means:WSAStartup function
WSADATA structure
Correct.
WS2_32.dll is the WinSock library itself. The
SOCKETis a handle to a specific socket connection. The socket is allocated with thesocket()orWSASocket()function, and released with theclosesocket()function.