wavelength 1.0.0
Loading...
Searching...
No Matches
InternalPacket Class Reference

Base of a packet the consoles of an online session exchange to run the session itself. More...

#include <internalpacket.h>

Inheritance diagram for InternalPacket:
Collaboration diagram for InternalPacket:

Public Member Functions

int Route () override
 Report that a received packet goes to the online session.
Public Member Functions inherited from Packet
void PrintExtra (PrnStream &stream) const override
 Write the sender and the receiver that are set, as from: and to:.
unsigned char GetFlags () const
int GetReceiver () const
int GetSender () const
void SetSender (int nSender)
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual Message * Clone ()=0
 Produce a heap copy of this message.
virtual int Type ()=0
 Report this message's registered identity.
virtual const char * GetName () const =0
 Report this message's class name.
virtual void saveGuts (BinStream &stream) const
 Write this message's payload to a stream.
virtual void restoreGuts (BinStream &stream)
 Read this message's payload from a stream.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.
virtual int Type ()=0

Protected Member Functions

 InternalPacket (unsigned char nFlags=0, int nReceiver=kUnset)
 Construct a packet from an unset sender.
Protected Member Functions inherited from Packet
 Packet (unsigned char nFlags, int nReceiver)
 Construct a packet from an unset sender.

Additional Inherited Members

Public Types inherited from Packet
enum  RouteFlag { kRouteTransport = 1 , kRouteLaunchpad = 2 }
 Bits of Route(). More...
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.
Static Public Attributes inherited from Packet
static constexpr int kUnset = -2
 Value of mSender and mReceiver that marks the member as unset.
static constexpr int kAllPeers = -1
 Value of mReceiver that addresses every peer.
static constexpr unsigned char kFlagOrdered = 1
 Bit of mFlags that LaunchpadRT::Send() turns into the second delivery bit of the session library.
static constexpr unsigned char kFlagGuaranteed = 2
 Bit of mFlags that NetTransport::Send() turns into its guaranteed delivery bit.

Detailed Description

Base of a packet the consoles of an online session exchange to run the session itself.

The RTTI records Packet as the one base. The class adds no member. A received packet of the class goes to the online session rather than to the game.

Constructor & Destructor Documentation

◆ InternalPacket()

InternalPacket::InternalPacket ( unsigned char nFlags = 0,
int nReceiver = kUnset )
inlineexplicitprotected

Construct a packet from an unset sender.

Inline. Every packet constructor expands it.

Parameters
nFlagsThe delivery flags.
nReceiverThe peer the packet is for, kAllPeers, or kUnset.

Member Function Documentation

◆ Route()

int InternalPacket::Route ( )
inlineoverridevirtual

Report that a received packet goes to the online session.

Inline. Every derived vtable addresses a shared copy at 0x00398e48 that returns 2.

Returns
kRouteLaunchpad.

Implements Packet.


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