wavelength 1.0.0
Loading...
Searching...
No Matches
mediusjoingametask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
13public:
20 ~MediusJoinGameTask() override = default;
21
23 static constexpr int kStatusDenied = -972;
24
38 static void
39 OnResponse(int nConnection, int nType, int nSize, const rtMediusJoinGameResponse *pResponse);
40
41protected:
48 void OnStart() override;
49};
Step that joins the game of the session on the lobby server, which gives the connection to it.
Definition mediusjoingametask.h:12
~MediusJoinGameTask() override=default
Destroy the object.
void OnStart() override
Send the request, which fails the step with LaunchpadAbortedMsg::kReasonInit.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusJoinGameResponse *pResponse)
Take the connection into LaunchpadRT::mConnectionInfo and finish the step.
static constexpr int kStatusDenied
The status of the response for a game that refuses this console.
Definition mediusjoingametask.h:23
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24