wavelength 1.0.0
Loading...
Searching...
No Matches
netdisconnecttask.h
Go to the documentation of this file.
1#pragma once
2
3#include "netflow/nettask.h"
4
10class NetDisconnectTask : public NetTask {
11public:
18 ~NetDisconnectTask() override = default;
19
29 static int Disconnect();
30
40 static void OnDisconnected(int nResult);
41
49
50protected:
57 void OnStart() override;
58};
Step that closes the connection of the session on the session library from the worker thread.
Definition netdisconnecttask.h:10
~NetDisconnectTask() override=default
Destroy the object.
void OnStart() override
Queue Disconnect() for the worker thread.
static NetDisconnectTask * sTask
The step that waits for OnDisconnected(), or null.
Definition netdisconnecttask.h:48
static void OnDisconnected(int nResult)
Clear LaunchpadRT::mConnection, report that the player left the game, and finish sTask.
static int Disconnect()
Close LaunchpadRT::mConnection, on the worker thread.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24