fix: IOCPServer::StartServer and IOCPClient::WorkThreadProc

This commit is contained in:
yuanyuanxiang
2021-03-14 11:44:56 +08:00
parent 919afb5311
commit 2ffa2534f1
6 changed files with 28 additions and 16 deletions

View File

@@ -787,10 +787,13 @@ VOID CMy2015RemoteDlg::ListenPort()
VOID CMy2015RemoteDlg::Activate(int nPort,int nMaxConnection)
{
m_iocpServer = new IOCPServer; //<2F><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD><C7B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if (m_iocpServer->StartServer(NotifyProc, OfflineProc, nPort)==FALSE)
UINT ret = 0;
if ( (ret=m_iocpServer->StartServer(NotifyProc, OfflineProc, nPort)) !=0 )
{
OutputDebugStringA("======> StartServer Failed \n");
char code[32];
sprintf_s(code, "%d", ret);
MessageBox("<EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD>StartServerʧ<EFBFBD><EFBFBD>! <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"+CString(code));
}
CString strTemp;