15 #include "config_pstats.h" 16 #include "pStatServerControlMessage.h" 19 #include "datagramIterator.h" 26 PStatServerControlMessage::
27 PStatServerControlMessage() {
49 <<
"Invalid PStatServerControlMessage::Type " << (int)_type <<
"\n";
73 <<
"Read invalid PStatServerControlMessage type: " << (int)_type <<
"\n";
void add_uint8(PN_uint8 value)
Adds an unsigned 8-bit integer to the datagram.
void encode(Datagram &datagram) const
Writes the message into the indicated datagram.
void add_string(const string &str)
Adds a variable-length string to the datagram.
bool decode(const Datagram &datagram)
Extracts the message from the indicated datagram.
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
PN_uint8 get_uint8()
Extracts an unsigned 8-bit integer.
string get_string()
Extracts a variable-length string.
PN_uint16 get_uint16()
Extracts an unsigned 16-bit integer.
void add_uint16(PN_uint16 value)
Adds an unsigned 16-bit integer to the datagram.
A class to retrieve the individual data elements previously stored in a Datagram. ...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...