wavelength 1.0.0
Loading...
Searching...
No Matches
channelinfotask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7struct NetChatroomInfo;
8
15class ChannelInfoTask : public NetTask {
16public:
24 explicit ChannelInfoTask(NetChatroomInfo *pChatroom) : mChatroom(pChatroom) {
25 }
26
39 static void
40 OnResponse(int nConnection, int nType, int nSize, const rtMediusChannelInfoResponse *pResponse);
41
42protected:
49 void OnStart() override;
50
51private:
52 NetChatroomInfo *mChatroom;
53};
ChannelInfoTask(NetChatroomInfo *pChatroom)
Construct a step.
Definition channelinfotask.h:24
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusChannelInfoResponse *pResponse)
Take the name and the counts, and finish the step the response is tagged with.
void OnStart() override
Send the request, or clear the room and finish when it has no identifier.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
The description of one chat room of the online lobby.
Definition netchatroominfo.h:11