示例#1
0
	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);
		}

	}
示例#2
0
	void CStressClient::OnDisconnected()
	{
		SetTitle("Disconnect");
		if(!CClientApp::GetDefault()->IsThread())
			_OnDisconnected(m_nIndex);
	}