参考:http://msdn.microsoft.com/en-us/library/windows/desktop/ms741549(v=vs.85).aspx
The WSACleanup function terminates use of the Winsock 2 DLL (Ws2_32.dll).
Syntax
int WSACleanup(void);
Parameters
This function has no parameters.
Return value
The return value is zero if the operation was successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.
Remarks
An application or DLL is required to perform a successful WSAStartup call before it can use Windows Sockets services. When it has completed the use of Windows Sockets, the application or DLL must call WSACleanup to deregister itself from a Windows Sockets implementation and allow the implementation to free any resources allocated on behalf of the application or DLL.
-
vt. & vi. 结束; 使终结