Ejemplo n.º 1
0
void P2PCmdModule_Impl::onPacket(imcore::TTPBHeader& header, std::string& pbBody)
{
    switch (header.getCommandId())
    {
    case IM::BaseDefine::SwitchServiceCmdID::CID_SWITCH_P2P_CMD:
        _p2pCmdNotifyResponse(pbBody);
        break;
    default:
        LOG__(ERR, _T("Unknow commandID:%d"), header.getCommandId());
        return;
    }
}
Ejemplo n.º 2
0
void LoginModule_Impl::onPacket(imcore::TTPBHeader& header, std::string& pbBody)
{
	switch (header.getCommandId())
	{
	case IM::BaseDefine::LoginCmdID::CID_LOGIN_KICK_USER:
		_kickUserResponse(pbBody);
		break;
	default:
		return;
	}
}
Ejemplo n.º 3
0
void FileTransferModule_Impl::onPacket(imcore::TTPBHeader& header, std::string& pbBody)
{
    switch (header.getCommandId())
    {
    case IM::BaseDefine::FileCmdID::DFFX_CID_FILE_RESPONSE://发送“文件请求/离线文件”-返回
        _sendfileResponse(pbBody);
        break;
    case IM::BaseDefine::FileCmdID::DFFX_CID_FILE_NOTIFY://收到“发送文件请求”
        _fileNotify(pbBody);
        break;
    case IM::BaseDefine::FileCmdID::DFFX_CID_FILE_HAS_OFFLINE_RES:
        _hasOfflineRes(pbBody);
        break;
    default:
        return;
    }
}