奇迹MuEx700.Emulator SourceCode with 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(); }
- 粉丝: 5
- 资源: 5
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助