Step that connects the host to a game server.
More...
#include <mgclconnecttask.h>
|
| static void | OnConnect (int nConnection, int nStatus) |
| | Receive the result of the connection and finish sTask.
|
| 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 connecting to the server.
|
| 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 connects the host to a game server.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d4c98, and the object is 0x10 bytes. The step fails with LaunchpadAbortedMsg::kReasonServer.
◆ Server
Values of mServer.
| Enumerator |
|---|
| kServerGame | The game server HostpadRT::mServerInfo describes.
|
| kServerLobby | The server of the lobby configuration.
|
◆ ~MGCLConnectTask()
| MGCLConnectTask::~MGCLConnectTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x00399da8
- Ghidra address:
- PAL: 0x00408630
◆ MGCLConnectTask()
| MGCLConnectTask::MGCLConnectTask |
( |
int | nServer | ) |
|
|
inlineexplicit |
Construct a step for a server.
Inline.
- Parameters
-
◆ OnConnect()
| void MGCLConnectTask::OnConnect |
( |
int | nConnection, |
|
|
int | nStatus ) |
|
static |
Receive the result of the connection and finish sTask.
The name is inferred.
- Parameters
-
| nConnection | The connection. |
| nStatus | 0 for success, otherwise an error. |
- Ghidra address:
- NTSC-U/C: 0x0025b3d8
- Ghidra address:
- PAL: 0x00264428
◆ OnStart()
| void MGCLConnectTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Start connecting to the server.
- Ghidra address:
- NTSC-U/C: 0x0025b1e0
- Ghidra address:
- PAL: 0x00264230
Reimplemented from Task.
◆ OnStop()
| void MGCLConnectTask::OnStop |
( |
| ) |
|
|
overrideprotectedvirtual |
Clear sTask.
- Ghidra address:
- NTSC-U/C: 0x0025b3c8
- Ghidra address:
- PAL: 0x00264418
Reimplemented from Task.
◆ sTask
The step that waits for OnConnect(), or null.
- Ghidra address:
- NTSC-U/C: 0x003b0ad8
- Ghidra address:
- PAL: 0x0042f9a4
◆ sConnecting
| int MGCLConnectTask::sConnecting |
|
static |
Non-zero while a connection is under way.
- Ghidra address:
- NTSC-U/C: 0x003b0adc
- Ghidra address:
- PAL: 0x0042f9a8
The documentation for this class was generated from the following file: