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

PStatClientControlMessage Class Reference

#include <pStatClientControlMessage.h>

List of all members.

Public Types

enum  Type {
  T_datagram = 0, T_hello, T_define_collectors, T_define_threads,
  T_invalid
}

Public Member Functions

 PStatClientControlMessage ()
void encode (Datagram &datagram) const
bool decode (const Datagram &datagram, PStatClientVersion *version)

Public Attributes

Type _type
string _client_hostname
string _client_progname
int _major_version
int _minor_version
pvector< PStatCollectorDef * > _collectors
int _first_thread_index
pvector< string > _names


Member Enumeration Documentation

enum PStatClientControlMessage::Type
 

Enumeration values:
T_datagram 
T_hello 
T_define_collectors 
T_define_threads 
T_invalid 

Definition at line 44 of file pStatClientControlMessage.h.


Constructor & Destructor Documentation

PStatClientControlMessage::PStatClientControlMessage  ) 
 

Definition at line 32 of file pStatClientControlMessage.cxx.

References _type, and T_invalid.


Member Function Documentation

bool PStatClientControlMessage::decode const Datagram datagram,
PStatClientVersion version
 

Definition at line 85 of file pStatClientControlMessage.cxx.

References _client_hostname, _client_progname, _collectors, _first_thread_index, _major_version, _minor_version, _names, _type, DatagramIterator::get_remaining_size(), DatagramIterator::get_string(), DatagramIterator::get_uint16(), DatagramIterator::get_uint8(), PStatCollectorDef::read_datagram(), T_datagram, T_define_collectors, T_define_threads, T_hello, and T_invalid.

void PStatClientControlMessage::encode Datagram datagram  )  const
 

Definition at line 42 of file pStatClientControlMessage.cxx.

References _client_hostname, _client_progname, _collectors, _first_thread_index, _major_version, _minor_version, _names, _type, Datagram::add_string(), Datagram::add_uint16(), Datagram::add_uint8(), Datagram::clear(), T_define_collectors, T_define_threads, and T_hello.


Member Data Documentation

string PStatClientControlMessage::_client_hostname
 

Definition at line 55 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

string PStatClientControlMessage::_client_progname
 

Definition at line 56 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

pvector<PStatCollectorDef *> PStatClientControlMessage::_collectors
 

Definition at line 61 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

int PStatClientControlMessage::_first_thread_index
 

Definition at line 64 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

int PStatClientControlMessage::_major_version
 

Definition at line 57 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

int PStatClientControlMessage::_minor_version
 

Definition at line 58 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

pvector<string> PStatClientControlMessage::_names
 

Definition at line 65 of file pStatClientControlMessage.h.

Referenced by decode(), and encode().

Type PStatClientControlMessage::_type
 

Definition at line 52 of file pStatClientControlMessage.h.

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


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:21 2003 for Panda by doxygen1.3