VOID CSDPipeChannelMgr::OnReport(INT32 nErrCode, UINT32 dwID) { if(SGDP::PIPE_SUCCESS == nErrCode) { _OnConnected(dwID); CSDPipeChannel* poPipeChannel = FindPipeChannel(dwID); if (poPipeChannel) { poPipeChannel->OnEstablish(); } } else { USR_INFO(_SDT("PipeID, %s, Pipe report: %d\n"), SGDP::SDServerIDUtoa(dwID).c_str(), nErrCode); _OnDisconnected(dwID); } }
void CStressClient::OnDisconnected() { SetTitle("Disconnect"); if(!CClientApp::GetDefault()->IsThread()) _OnDisconnected(m_nIndex); }