wavelength 1.0.0
Loading...
Searching...
No Matches
getpolicytask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
13class GetPolicyTask : public NetTask {
14public:
21 ~GetPolicyTask() override = default;
22
36 static void
37 OnResponse(int nConnection, int nType, int nSize, const rtMediusPolicyResponse *pResponse);
38
39protected:
46 void OnStart() override;
47};
Step that reads the licence agreement of the lobby server into LobbyRT::mPolicy.
Definition getpolicytask.h:13
~GetPolicyTask() override=default
Destroy the object.
void OnStart() override
Clear the text and send the request.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusPolicyResponse *pResponse)
Append a part of the text, and finish the step the response is tagged with after the last part.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24