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] |
|
Costructor for the class. |
|
Destructor for the ControlHeader class. |
|
Return a string containing the auth login name in the MD5 format. |
|
Return a string containing the auth login password in the MD5 format. |
|
Return a string containing the command specified in the request. |
|
Return a string containing the connection type. Connection can be Closed or Keep-Alive. |
|
Return the data length specified in the client header. |
|
Return a string containing options specified by the client. |
|
Return the version of protocol used. |
|
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 |
|
Reset everything. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|