int MRTHttpSvrConn::OnWriteEvent(const char*pData, int nLen, int* nOutLen) { MSender *sender = new MSender(); sender->ConnHttpHost(m_httpIp, m_httpPort, m_httpHost); sender->SendRequest(pData, nLen); return 0; }
void MRTHttpSvrConn::HttpGetMeetingMemberList(pms::RelayMsg& rmsg, pms::Entity& msg) const { int outLen = 0; char data[512] = {0}; const char* meetingid = msg.rom_id().c_str(); sprintf(data, "meeting/getMeetingMemberList/%s", meetingid); const char* pmsg = GenerateRequest(HTTP_GET, data, "", outLen); if (pmsg && outLen>0) { MSender *sender = new MSender(M_HTTP_CMD_GET_MEMBER_LIST, rmsg, msg); sender->ConnHttpHost(m_httpIp, m_httpPort, m_httpHost); sender->SendRequest(pmsg, outLen); free((void*)pmsg); pmsg = NULL; } }
void MRTHttpSvrConn::HttpGetMeetingMemberList(TRANSMSG& tmsg, MEETMSG& msg) { int outLen = 0; char data[512] = {0}; const char* meetingid = msg._room.c_str(); sprintf(data, "meeting/getMeetingMemberList/%s", meetingid); const char* pmsg = GenerateRequest(HTTP_GET, data, "", outLen); if (pmsg && outLen>0) { MSender *sender = new MSender(M_HTTP_CMD_GET_MEMBER_LIST, tmsg, msg); sender->ConnHttpHost(m_httpIp, m_httpPort, m_httpHost); sender->SendRequest(pmsg, outLen); free((void*)pmsg); pmsg = NULL; } }