81 void ReportScores(
const std::vector<NetGameScore> &scores)
override;
145 std::vector<int> mAborted;
Base of a packet a peer sends to another console.
Definition externalpacket.h:11
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
Connection that carries packets between consoles.
Definition nettransport.h:16
Abstract base of a message that travels between consoles.
Definition packet.h:13
void SetOpen(int nOpen)
Open or close the transport.
int GetOpen() const
Definition transportrt.h:133
void Leave() override
Leave the game of the session.
MsgSink * GetSink() const
Definition transportrt.h:128
~TransportRT() override
Clear TheTransportRT and TheNetTransport.
bool IsHost() override
Report whether this console hosts the session.
TransportRT()
Construct a closed transport with no sink.
void Receive(Packet *pPacket)
Pass a received packet to mSink while the transport is open, unless its sender left.
void Send(ExternalPacket &packet) override
Send a packet through the session while the transport is open.
const std::vector< int > & GetAborted() const
Definition transportrt.h:138
void Notify(Message *pMsg)
Pass a message to mSink while the transport is open.
void PlayerAborted(int nId)
Note a player who left, and report the player to mSink while the transport is open.
void ReportScores(const std::vector< NetGameScore > &scores) override
Send the final scores of the game from the host.
void SetSink(MsgSink *pSink) override
Set mSink.
std::unique_ptr< TransportRT > TheTransportRT
The transport.