The transport of the packets of the game over the online session of LaunchpadRT.
More...
#include <transportrt.h>
|
| | TransportRT () |
| | Construct a closed transport with no sink.
|
| | ~TransportRT () override |
| | Clear TheTransportRT and TheNetTransport.
|
| void | SetSink (MsgSink *pSink) override |
| | Set mSink.
|
| void | Send (ExternalPacket &packet) override |
| | Send a packet through the session while the transport is open.
|
| bool | IsHost () override |
| | Report whether this console hosts the session.
|
| void | Leave () override |
| | Leave the game of the session.
|
| void | ReportScores (const std::vector< NetGameScore > &scores) override |
| | Send the final scores of the game from the host.
|
| void | Notify (Message *pMsg) |
| | Pass a message to mSink while the transport is open.
|
| void | Receive (Packet *pPacket) |
| | Pass a received packet to mSink while the transport is open, unless its sender left.
|
| void | PlayerAborted (int nId) |
| | Note a player who left, and report the player to mSink while the transport is open.
|
| void | SetOpen (int nOpen) |
| | Open or close the transport.
|
| MsgSink * | GetSink () const |
| int | GetOpen () const |
| const std::vector< int > & | GetAborted () const |
| virtual | ~NetTransport () |
| | Release the transport.
|
The transport of the packets of the game over the online session of LaunchpadRT.
The RTTI includes the class name and records NetTransport as the base. The vtable is at 0x003d6510, and the object is 0x1c bytes. The constructor stores the instance in TheTransportRT and TheNetTransport. The transport passes packets on only while it is open.
◆ TransportRT()
| TransportRT::TransportRT |
( |
| ) |
|
Construct a closed transport with no sink.
- Ghidra address:
- NTSC-U/C: 0x0026b088
- Ghidra address:
- PAL: 0x00274c18
◆ ~TransportRT()
| TransportRT::~TransportRT |
( |
| ) |
|
|
override |
Clear TheTransportRT and TheNetTransport.
- Ghidra address:
- NTSC-U/C: 0x0026b0f0
- Ghidra address:
- PAL: 0x00274c80
◆ SetSink()
| void TransportRT::SetSink |
( |
MsgSink * | pSink | ) |
|
|
overridevirtual |
Set mSink.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026b3f8
- Ghidra address:
- PAL: 0x00274f88
Implements NetTransport.
◆ Send()
Send a packet through the session while the transport is open.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026b400
- Ghidra address:
- PAL: 0x00274f90
Implements NetTransport.
◆ IsHost()
| bool TransportRT::IsHost |
( |
| ) |
|
|
overridevirtual |
Report whether this console hosts the session.
- Returns
- Whether a session exists and this console has the identifier of the host.
- Ghidra address:
- NTSC-U/C: 0x0026b438
- Ghidra address:
- PAL: 0x00274fc8
Implements NetTransport.
◆ Leave()
| void TransportRT::Leave |
( |
| ) |
|
|
overridevirtual |
Leave the game of the session.
- Ghidra address:
- NTSC-U/C: 0x0026b458
- Ghidra address:
- PAL: 0x00274fe8
Implements NetTransport.
◆ ReportScores()
| void TransportRT::ReportScores |
( |
const std::vector< NetGameScore > & | scores | ) |
|
|
overridevirtual |
Send the final scores of the game from the host.
- Parameters
-
| scores | The score of each player. |
- Ghidra address:
- NTSC-U/C: 0x0026b480
- Ghidra address:
- PAL: 0x00275010
Implements NetTransport.
◆ Notify()
| void TransportRT::Notify |
( |
Message * | pMsg | ) |
|
Pass a message to mSink while the transport is open.
The name is inferred.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026b178
- Ghidra address:
- PAL: 0x00274d08
◆ Receive()
| void TransportRT::Receive |
( |
Packet * | pPacket | ) |
|
Pass a received packet to mSink while the transport is open, unless its sender left.
The name is inferred.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026b1b8
- Ghidra address:
- PAL: 0x00274d48
◆ PlayerAborted()
| void TransportRT::PlayerAborted |
( |
int | nId | ) |
|
Note a player who left, and report the player to mSink while the transport is open.
The name is inferred.
- Parameters
-
| nId | The player's identifier in the session. |
- Ghidra address:
- NTSC-U/C: 0x0026b240
- Ghidra address:
- PAL: 0x00274dd0
◆ SetOpen()
| void TransportRT::SetOpen |
( |
int | nOpen | ) |
|
Open or close the transport.
Opening forgets the players who left.
The name is inferred.
- Parameters
-
| nOpen | Non-zero to open the transport. |
- Ghidra address:
- NTSC-U/C: 0x0026b3e0
- Ghidra address:
- PAL: 0x00274f70
◆ GetSink()
| MsgSink * TransportRT::GetSink |
( |
| ) |
const |
|
inline |
- Returns
- The sink the messages of the game go to, or null. Borrowed.
◆ GetOpen()
| int TransportRT::GetOpen |
( |
| ) |
const |
|
inline |
- Returns
- Non-zero while the game runs.
◆ GetAborted()
| const std::vector< int > & TransportRT::GetAborted |
( |
| ) |
const |
|
inline |
- Returns
- The players who exited the game.
The documentation for this class was generated from the following file: