wavelength 1.0.0
Loading...
Searching...
No Matches
NetTransport Class Referenceabstract

Connection that carries packets between consoles. More...

#include <nettransport.h>

Inheritance diagram for NetTransport:

Public Member Functions

virtual void SetSink (MsgSink *pSink)=0
 Set the sink the received messages go to.
virtual void Send (ExternalPacket &packet)=0
 Encode a packet and send it to the peers its receiver selects.
virtual bool IsHost ()=0
 Report whether this console hosts the session.
virtual void Leave ()=0
 Leave the session.
virtual void ReportScores (const std::vector< NetGameScore > &scores)=0
 Report the final scores of the session to the session server.
virtual ~NetTransport ()
 Release the transport.

Detailed Description

Connection that carries packets between consoles.

The RTTI includes the class name. TransportRT derives from it, and its constructor stores the one instance in TheNetTransport. The vtable is at 0x003d6550. Every member is pure, and the destructor occupies the last slot.

Constructor & Destructor Documentation

◆ ~NetTransport()

virtual NetTransport::~NetTransport ( )
inlinevirtual

Release the transport.

Ghidra address:
NTSC-U/C: 0x003a1f90
Ghidra address:
PAL: 0x00410c70

Member Function Documentation

◆ SetSink()

virtual void NetTransport::SetSink ( MsgSink * pSink)
pure virtual

Set the sink the received messages go to.

The name is inferred.

Parameters
pSinkThe sink, or null.

Implemented in TransportRT.

◆ Send()

virtual void NetTransport::Send ( ExternalPacket & packet)
pure virtual

Encode a packet and send it to the peers its receiver selects.

TransportRT's implementation sends nothing while no session is open.

Parameters
packetThe packet.

Implemented in TransportRT.

◆ IsHost()

virtual bool NetTransport::IsHost ( )
pure virtual

Report whether this console hosts the session.

Returns
Whether this console is the host.

Implemented in TransportRT.

◆ Leave()

virtual void NetTransport::Leave ( )
pure virtual

Leave the session.

Implemented in TransportRT.

◆ ReportScores()

virtual void NetTransport::ReportScores ( const std::vector< NetGameScore > & scores)
pure virtual

Report the final scores of the session to the session server.

Parameters
scoresThe score of each player.

Implemented in TransportRT.


The documentation for this class was generated from the following file: