Endian aware network packet interface. More...
#include <Packet.h>
Public Member Functions | |
Packet (const Packet &pkt) | |
Packet & | operator= (const Packet &pkt) |
void | Clear () |
void | SendPacket (spl::IStream &sock) |
void | ReadPacket (spl::IStream &sock) |
void | Append (int64 i) |
void | Append (int32 i) |
void | Append (int16 i) |
void | Append (byte i) |
void | Append (bool b) |
void | Append (double d) |
void | Append (const DateTime &dtm) |
void | Append (const Date &dt) |
void | Append (const String &str) |
void | Append (const char *str) |
void | Append (const char *str, int len) |
void | Append (const Array< byte > &buf, int start, int len) |
void | Append (const Array< byte > &buf, int len) |
void | Append (const Array< byte > &buf) |
int | PacketSize () |
int64 | ReadInt64 () |
int32 | ReadInt32 () |
int16 | ReadInt16 () |
byte | ReadInt8 () |
bool | ReadBool () |
double | ReadDouble () |
StringPtr | ReadString () |
byte * | ReadBuf (int len) |
DateTime | ReadDateTime () |
Date | ReadDate () |
void | CheckMem () const |
void | ValidateMem () const |
Protected Member Functions | |
byte | _NextByte () |
void | _AppendRaw (byte i) |
void | _AppendRaw (int16 i) |
void | _AppendRaw (int32 i) |
void | _AppendRaw (int64 i) |
Protected Attributes | |
Array< byte > | m_abuf |
Vector< byte > | m_buf |
bool | m_readPacketReady |
int | m_readpos |
bool | m_readRevByteOrder |
int16 | m_rpacketsize |
Endian aware network packet interface.
Definition at line 49 of file Packet.h.