My Project
|
Classes | |
struct | Info |
Public Member Functions | |
NetDat () | |
NetDat (const NetDat &netDat) | |
NetDat (NetDat &netDat) | |
void | operator= (const NetDat &netDat) |
void | operator= (NetDat &netDat) |
virtual | ~NetDat () |
virtual unsigned | size () |
virtual std::vector< unsigned char > & | getSerializedData () |
virtual void | packSerializedData (unsigned char *bytes) |
virtual void | deserialize (const std::vector< unsigned char > &bytes) |
unsigned | maxSize () |
bool | send (int fd) |
bool | recv (int fd) |
Protected Member Functions | |
virtual void | resize (unsigned size) |
unsigned char *const | getSerializedDataPtr () |
virtual void | serialize () |
virtual void | deserialize (const unsigned char *bytes)=0 |
virtual void | checkSize (const std::vector< unsigned char > &bytes) |
Protected Attributes | |
std::vector< unsigned char > | bytes_ |
unsigned | maxSize_ |
Friends | |
class | NetStruct |
class | NetUnion |
NetDat::NetDat | ( | ) |
Constructor.
....................................................................... Constructor.
NetDat::NetDat | ( | const NetDat & | netDat | ) |
Constructor.
....................................................................... Copy constructors
|
virtual |
Destructor.
....................................................................... Destructor.
|
protectedvirtual |
Check an array size against ours
....................................................................... Check the size of an array against our size
|
virtual |
Deserialize data into this object
....................................................................... Deserialize data into this object
Reimplemented in gcp::util::NetUnion, gcp::util::NetStruct, and gcp::util::NetVar.
|
protectedpure virtual |
Private deserialization method
....................................................................... Private deserialization method
Implemented in gcp::util::NetUnion, and gcp::util::NetStruct.
|
virtual |
Return a reference to serialized data
....................................................................... Return a reference to serialized data
|
protected |
Return a reference to internal data
....................................................................... Return a pointer to serialized data
unsigned NetDat::maxSize | ( | ) |
Return the maximum size (for variable sized objects) in bytes
....................................................................... Max size in bytes
void NetDat::operator= | ( | const NetDat & | netDat | ) |
....................................................................... Copy constructors
|
virtual |
Fill an external pointer with serialized data
....................................................................... Return a pointer to serialized data
bool NetDat::recv | ( | int | fd | ) |
Receive this object over a socket
....................................................................... Receive this object over a socket
|
protectedvirtual |
Increment size
....................................................................... Increment the size
bool NetDat::send | ( | int | fd | ) |
Send this object over a socket
....................................................................... Send this object over a socket
|
protectedvirtual |
Serialize the data
....................................................................... Serialize the data
|
virtual |
Return size in bytes
....................................................................... Size in bytes
Reimplemented in gcp::util::NetUnion, gcp::util::NetStruct, and gcp::util::NetVar.
|
protected |
Memory for the serialized version of this data
|
protected |
Maximum size in bytes