Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatServerControlMessage Class Reference

This kind of message is sent from the server to the client on the TCP socket to establish critical control information. More...

#include <pStatServerControlMessage.h>

List of all members.

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


Detailed Description

This kind of message is sent from the server to the client on the TCP socket to establish critical control information.

Definition at line 42 of file pStatServerControlMessage.h.


Member Enumeration Documentation

enum PStatServerControlMessage::Type
 

Enumeration values:
T_invalid 
T_hello 

Definition at line 49 of file pStatServerControlMessage.h.


Constructor & Destructor Documentation

PStatServerControlMessage::PStatServerControlMessage  ) 
 

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.


Member Function Documentation

bool PStatServerControlMessage::decode const Datagram datagram  ) 
 

Extracts the message from the indicated datagram.

Returns true on success, false on error.

Definition at line 76 of file pStatServerControlMessage.cxx.

References _type, and T_invalid.

void PStatServerControlMessage::encode Datagram datagram  )  const
 

Writes the message into the indicated datagram.

Definition at line 49 of file pStatServerControlMessage.cxx.

References _type.


Member Data Documentation

string PStatServerControlMessage::_server_hostname
 

Definition at line 57 of file pStatServerControlMessage.h.

Referenced by PStatServerControlMessage().

string PStatServerControlMessage::_server_progname
 

Definition at line 58 of file pStatServerControlMessage.h.

Referenced by PStatServerControlMessage().

Type PStatServerControlMessage::_type
 

Definition at line 54 of file pStatServerControlMessage.h.

Referenced by decode(), encode(), and PStatServerControlMessage().

int PStatServerControlMessage::_udp_port
 

Definition at line 59 of file pStatServerControlMessage.h.

Referenced by PStatServerControlMessage().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:31 2003 for Panda by doxygen1.3