Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ControlHeader Class Reference

List of all members.

Public Member Functions

 ControlHeader ()
char * getAuthLogin ()
char * getAuthPassword ()
char * getCommand ()
char * getConnection ()
int getLength ()
char * getOptions ()
char * getVersion ()
int parse_header (char *buffer, int bufferlen, int *)
void reset ()
virtual ~ControlHeader ()

Private Attributes

char authLogin [64]
char authPassword [64]
char cmdOptions [64]
char command [32]
char connection [32]
int length
char version [12]

Constructor & Destructor Documentation

ControlHeader::ControlHeader  ) 
 

Costructor for the class.

ControlHeader::~ControlHeader  )  [virtual]
 

Destructor for the ControlHeader class.


Member Function Documentation

char * ControlHeader::getAuthLogin  ) 
 

Return a string containing the auth login name in the MD5 format.

char * ControlHeader::getAuthPassword  ) 
 

Return a string containing the auth login password in the MD5 format.

char * ControlHeader::getCommand  ) 
 

Return a string containing the command specified in the request.

char * ControlHeader::getConnection  ) 
 

Return a string containing the connection type. Connection can be Closed or Keep-Alive.

int ControlHeader::getLength  ) 
 

Return the data length specified in the client header.

char * ControlHeader::getOptions  ) 
 

Return a string containing options specified by the client.

char * ControlHeader::getVersion  ) 
 

Return the version of protocol used.

int ControlHeader::parse_header char *  buffer,
int  bufferlen,
int *  len
 

Parse the header in buffer. Put the effective length of the header in len. Return a control_error. See control_errors.h to have a list of all errors. Return -1 on an incomplete header. The header has this form: _/CMD VERSION more_options
_/AUTH md5(name:password)
_/LEN length of data
_*** _Additional fields.(Not used now) _*** _
-> Header ends with a
. _Data...

void ControlHeader::reset  ) 
 

Reset everything.


Member Data Documentation

char ControlHeader::authLogin[64] [private]
 

char ControlHeader::authPassword[64] [private]
 

char ControlHeader::cmdOptions[64] [private]
 

char ControlHeader::command[32] [private]
 

char ControlHeader::connection[32] [private]
 

int ControlHeader::length [private]
 

char ControlHeader::version[12] [private]
 


Generated on Wed Nov 8 13:12:48 2006 for MyServer by doxygen 1.3.6