Step that starts the network library and its lobby client.
More...
#include <initrttask.h>
|
| static void * | AllocBlock (int nSize) |
| | Allocate a block for the library from the rtime pool.
|
| 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 | MakeTag (NetTask *pTask, char *pszTag) |
| | Create the next tag of a task and copy its text.
|
| static void | RemoveTag (NetTask *pTask) |
| | Remove the first tag of a task.
|
| static NetTask * | FindTag (const char *pszTag) |
| | Find the task of a tag.
|
|
| 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.
|
| void | OnStop () override |
| | Remove the tag of the task.
|
| virtual void | OnPoll () |
| | Advance the work, and set mState to kStateDone when it finishes.
|
Step that starts the network library and its lobby client.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d57e8. The step sets LobbyRT::mRtReady, and it fails with LobbyConnectResultMsg::kResultFailed.
◆ ~InitRTTask()
| InitRTTask::~InitRTTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039b838
- Ghidra address:
- PAL: 0x0040a480
◆ AllocBlock()
| void * InitRTTask::AllocBlock |
( |
int | nSize | ) |
|
|
static |
Allocate a block for the library from the rtime pool.
The name is inferred.
- Parameters
-
| nSize | The size of the block in bytes. |
- Returns
- The block, aligned to 16 bytes.
- Ghidra address:
- NTSC-U/C: 0x00267358
- Ghidra address:
- PAL: 0x00271030
◆ FreeBlock()
| void InitRTTask::FreeBlock |
( |
void * | pBlock | ) |
|
|
static |
Release a block AllocBlock() returned.
The name is inferred.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x00267380
- Ghidra address:
- PAL: 0x00271058
◆ OnNotice()
| void InitRTTask::OnNotice |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMediusResponse * | pNotice ) |
|
static |
Receive a notice of the lobby server.
The body is empty.
The name is inferred.
- Parameters
-
| nConnection | The connection. |
| nType | The kind of notice. |
| nSize | The size of the notice. |
| pNotice | The notice. |
- Ghidra address:
- NTSC-U/C: 0x002673a0
- Ghidra address:
- PAL: 0x00271078
◆ OnStart()
| void InitRTTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Start the peer-to-peer layer, register the messages of the online session, and start the lobby client.
- Ghidra address:
- NTSC-U/C: 0x00262d78
- Ghidra address:
- PAL: 0x0026bed0
Reimplemented from Task.
◆ OnStop()
| void InitRTTask::OnStop |
( |
| ) |
|
|
overrideprotectedvirtual |
Clear sTask.
- Ghidra address:
- NTSC-U/C: 0x00262f48
- Ghidra address:
- PAL: 0x0026c0a0
Reimplemented from Task.
◆ sTask
A step that is never set.
OnStop() clears it.
- Ghidra address:
- NTSC-U/C: 0x003b0af8
- Ghidra address:
- PAL: 0x0042f9c4
The documentation for this class was generated from the following file: