/** * Terminate the socket module */ void Socket_outTerminate() { FUNC_ENTRY; ListFree(s.connect_pending); ListFree(s.write_pending); ListFree(s.clientsds); SocketBuffer_terminate(); #if defined(WIN32) || defined(WIN64) WSACleanup(); #endif FUNC_EXIT; }
/** * Terminate the socket module for outbound communications only */ void Socket_outTerminate() { FUNC_ENTRY; #if defined(USE_POLL) TreeFree(s.fds_tree); #else ListFree(s.connect_pending); ListFree(s.write_pending); ListFree(s.clientsds); #endif ListFree(s.newSockets); SocketBuffer_terminate(); #if defined(WIN32) WSACleanup(); #endif FUNC_EXIT; }