wavelength 1.0.0
Loading...
Searching...
No Matches
initrttask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
13class InitRTTask : public NetTask {
14public:
21 ~InitRTTask() override = default;
22
33 static void *AllocBlock(int nSize);
34
44 static void FreeBlock(void *pBlock);
45
58 static void OnNotice(int nConnection, int nType, int nSize, const rtMediusResponse *pNotice);
59
67
68protected:
76 void OnStart() override;
77
84 void OnStop() override;
85};
Step that starts the network library and its lobby client.
Definition initrttask.h:13
static void FreeBlock(void *pBlock)
Release a block AllocBlock() returned.
static void OnNotice(int nConnection, int nType, int nSize, const rtMediusResponse *pNotice)
Receive a notice of the lobby server.
static void * AllocBlock(int nSize)
Allocate a block for the library from the rtime pool.
~InitRTTask() override=default
Destroy the object.
static InitRTTask * sTask
A step that is never set.
Definition initrttask.h:66
void OnStart() override
Start the peer-to-peer layer, register the messages of the online session, and start the lobby client...
void OnStop() override
Clear sTask.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24