wavelength 1.0.0
Loading...
Searching...
No Matches
sessionendtask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
13class SessionEndTask : public NetTask {
14public:
21 ~SessionEndTask() override = default;
22
35 static void
36 OnResponse(int nConnection, int nType, int nSize, const rtMediusResponse *pResponse);
37
38protected:
45 void OnStart() override;
46
53 void OnPoll() override;
54
55private:
56 float mDeadline;
57};
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Step that ends the session on the lobby server.
Definition sessionendtask.h:13
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusResponse *pResponse)
Forget the key of the session and finish the step the response is tagged with.
void OnPoll() override
Finish once mDeadline passes.
~SessionEndTask() override=default
Destroy the object.
void OnStart() override
Send the request, or finish when there is no session or the connection failed.