奇迹MuEx700.Emulator SourceCode with IOCP

时间:2016-05-20 12:55:13
【文件属性】:

文件名称:奇迹MuEx700.Emulator SourceCode with IOCP

文件大小:32.85MB

文件格式:7Z

更新时间:2016-05-20 12:55:13

MuEx700 Emulator SourceCode IOCP

#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(); }


网友评论

相关文章