void WIPX_Shutdown (void) { WIPX_Listen (false); WIPX_CloseSocket (net_controlsocket); if (--winsock_initialized == 0) pWSACleanup (); }
void WIPX_Shutdown (void) { WIPX_Listen (false); WIPX_CloseSocket (net_controlsocket); if (--winsock_initialized == 0) { pWSACleanup (); FreeLibrary(hInst); hInst=NULL; } }
void WIPX_Listen (qboolean state) { // enable listening if (state) { if (net_acceptsocket != -1) return; if ((net_acceptsocket = WIPX_OpenSocket (net_hostport)) == -1) Sys_Error ("WIPX_Listen: Unable to open accept socket\n"); return; } // disable listening if (net_acceptsocket == -1) return; WIPX_CloseSocket (net_acceptsocket); net_acceptsocket = -1; }