|
wavelength 1.0.0
|
Connection that carries packets between consoles. More...
#include <nettransport.h>

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. | |
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.
|
inlinevirtual |
Release the transport.
|
pure virtual |
Set the sink the received messages go to.
The name is inferred.
| pSink | The sink, or null. |
Implemented in TransportRT.
|
pure virtual |
Encode a packet and send it to the peers its receiver selects.
TransportRT's implementation sends nothing while no session is open.
| packet | The packet. |
Implemented in TransportRT.
|
pure virtual |
Report whether this console hosts the session.
Implemented in TransportRT.
|
pure virtual |
Leave the session.
Implemented in TransportRT.
|
pure virtual |
Report the final scores of the session to the session server.
| scores | The score of each player. |
Implemented in TransportRT.