wavelength 1.0.0
Loading...
Searching...
No Matches
mgclsessionendtask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmgcl.h>
4
5#include "netflow/nettask.h"
6
14public:
21 ~MGCLSessionEndTask() override = default;
22
35 static void OnResponse(int nConnection, int nType, int nSize, const rtMgclResponse *pResponse);
36
37protected:
44 void OnStart() override;
45
52 void OnPoll() override;
53
54private:
55 float mDeadline;
56};
Step that reports the end of the game of the host and ends its session with the game server.
Definition mgclsessionendtask.h:13
~MGCLSessionEndTask() override=default
Destroy the object.
static void OnResponse(int nConnection, int nType, int nSize, const rtMgclResponse *pResponse)
Clear HostpadRT::mSessionKey and finish the step.
void OnPoll() override
Finish once mDeadline passes.
void OnStart() override
Report the end of the game and send the request.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24