41 #ifndef _networkpacket_h
42 #define _networkpacket_h
139 virtual UInt16 GetPacketType()
const = 0;
142 virtual Whole GetExpectedSize()
const = 0;
146 virtual Whole GetSize()
const = 0;
149 Boole IsExpectedSize()
const;
157 virtual void SetData(
const void* Buffer,
const Whole BufSize) = 0;
161 virtual void AppendData(
const void* Buffer,
const Whole BufSize) = 0;
164 virtual void* GetData() = 0;
167 virtual const void* GetData()
const = 0;
169 virtual void ClearData() = 0;
static const Whole DefaultUDPv6MsgSize
The maximum size the message portion of a UDP packet can be without being rejected with IPv6...
bool Boole
Generally acts a single bit, true or false.
static const Whole DefaultTCPv6MsgSize
The maximum size the message portion of a TCP packet can be without segmenting with IPv6...
static const Whole DefaultIPv4MTU
The maximum size an entire single transmission can be without fragmenting/rejection over IPv4...
All the definitions for datatypes as well as some basic conversion functions are defined here...
static const Whole DefaultTCPv4MsgSize
The maximum size the message portion of a TCP packet can be without segmenting with IPv4...
uint16_t UInt16
An 16-bit unsigned integer.
A base class for packing information to be transferred over the network.
static const Whole DefaultUDPv4MsgSize
The maximum size the message portion of a UDP packet can be without fragmenting/rejection with IPv4...
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
static const Whole DefaultIPv6MTU
The maximum size an entire single transmission can be without fragmenting/rejection over IPv6...