seems a prob in win

This commit is contained in:
tqchen 2014-11-23 22:18:28 -08:00
parent fde580b08e
commit 35bf2101fe

View File

@ -125,7 +125,9 @@ class TCPSocket {
* \brief shutdown the socket module after use, all sockets need to be closed
*/
inline static void Finalize(void) {
#ifdef _WIN32
WSACleanup();
#endif
}
/*!
* \brief set this socket to use non-blocking mode