奇迹MuEx700.Emulator SourceCode with IOCP
文件大小: 33643k
源码售价: 10 个金币 积分规则     积分充值
资源说明:#include "../Header Files/StdAfx.H" #include "../Header Files/IOCP.H" #include "../Header Files/Main.H" #include "../Header Files/LogProc.H" IOCP::IOCP() { TSync.CSLock(); // ----- SetDefault(); } // ------------------------------------------------------------------------------------------------------------------------------------------------------- IOCP::~IOCP() { TSync.CSUnlock(); } // ------------------------------------------------------------------------------------------------------------------------------------------------------- void IOCP::SetDefault() { TSync.CSLock(); // ----- memset(m_Name, 0, sizeof(m_Name)); // ----- m_Name[0] = 'N'; m_Name[1] = 'O'; m_Name[2] = 'N'; m_Name[3] = 'E'; // ----- m_nPort = 00000; m_hCmport = 0; m_nThreadCount = 0; m_AddedCount = 0; m_DelaySNet = 100; m_Listen = INVALID_SOCKET; // ----- for(int i = 0; i != MAX_OBJECT; i++) { m_Server[i].m_Index = SOCKET_ERROR; m_Server[i].m_Socket = INVALID_SOCKET; m_Server[i].m_State = SRVS_OFFLINE; m_Server[i].PerSocketContext = new _PER_SOCKET_CONTEXT; } // ----- TSync.CSUnlock(); }
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。