#include <pStatServerControlMessage.h>
Public Types | |
| enum | Type { T_invalid, T_hello } |
Public Member Functions | |
| PStatServerControlMessage () | |
| void | encode (Datagram &datagram) const |
| Writes the message into the indicated datagram. | |
| bool | decode (const Datagram &datagram) |
| Extracts the message from the indicated datagram. | |
Public Attributes | |
| Type | _type |
| string | _server_hostname |
| string | _server_progname |
| int | _udp_port |
Definition at line 42 of file pStatServerControlMessage.h.
|
|
Definition at line 49 of file pStatServerControlMessage.h. |
|
|
Definition at line 36 of file pStatServerControlMessage.cxx. References _server_hostname, _server_progname, _type, _udp_port, Datagram::add_string(), Datagram::add_uint16(), Datagram::add_uint8(), Datagram::clear(), and T_hello. |
|
|
Extracts the message from the indicated datagram. Returns true on success, false on error. Definition at line 76 of file pStatServerControlMessage.cxx. |
|
|
Writes the message into the indicated datagram.
Definition at line 49 of file pStatServerControlMessage.cxx. References _type. |
|
|
Definition at line 57 of file pStatServerControlMessage.h. Referenced by PStatServerControlMessage(). |
|
|
Definition at line 58 of file pStatServerControlMessage.h. Referenced by PStatServerControlMessage(). |
|
|
Definition at line 54 of file pStatServerControlMessage.h. Referenced by decode(), encode(), and PStatServerControlMessage(). |
|
|
Definition at line 59 of file pStatServerControlMessage.h. Referenced by PStatServerControlMessage(). |
1.3