1. 程式人生 > >windows socket程式設計(服務端頻繁的執行FD_CLOSE)

windows socket程式設計(服務端頻繁的執行FD_CLOSE)

if(NetworkEvents.lNetworkEvents & FD_CLOSE)
{
pGenericServer->CleanupThread(Event, s, pNewConn, GetCurrentThreadId());
#ifdef GENERICSERVER_DEBUGOUT
char logMsg[2048]={0};
sprintf(logMsg,"%s: NetworkEvents.lNetworkEvents & FD_CLOSE",__FUNCTION__);
genericserver_debugout(logMsg);
#endif
return THREADEXIT_SUCCESS;
}