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

HttpTestCommandProcessor Class Reference

#include <HttpTestCommandProcessor.h>

Inheritance diagram for HttpTestCommandProcessor::

CommandProcessor BasicObject List of all members.

Public Methods

 HttpTestCommandProcessor (int port=HTTP_TEST_PROCESSOR_PORT)
virtual void stopThread ()
void changePort (int port)
virtual void toStream (std::ostream &out)

Protected Methods

virtual void readCommand (std::string *input)
 This is the main loop for the HttpTestCommandProcessor thread. More...

virtual void displayResponse (std::string *output)
 Send an HTTP/HTML page back to the user. More...


Private Attributes

TcpConnectionm_listener
TcpConnectionm_connection

Constructor & Destructor Documentation

HttpTestCommandProcessor::HttpTestCommandProcessor int port = HTTP_TEST_PROCESSOR_PORT
 

Definition at line 4 of file HttpTestCommandProcessor.cpp.


Member Function Documentation

void HttpTestCommandProcessor::changePort int port
 

Definition at line 29 of file HttpTestCommandProcessor.cpp.

void HttpTestCommandProcessor::displayResponse std::string * output [protected, virtual]
 

Send an HTTP/HTML page back to the user.

Reimplemented from CommandProcessor.

Definition at line 94 of file HttpTestCommandProcessor.cpp.

void HttpTestCommandProcessor::readCommand std::string * input [protected, virtual]
 

This is the main loop for the HttpTestCommandProcessor thread.

It implements a shoddy version of HTTP 1.0. It receives requests, sends the response, and closes the port. It then loops back and starts again.

Reimplemented from CommandProcessor.

Definition at line 49 of file HttpTestCommandProcessor.cpp.

void HttpTestCommandProcessor::stopThread [virtual]
 

Reimplemented from CommandProcessor.

Definition at line 18 of file HttpTestCommandProcessor.cpp.

void HttpTestCommandProcessor::toStream std::ostream & out [virtual]
 

Reimplemented from CommandProcessor.

Definition at line 156 of file HttpTestCommandProcessor.cpp.


Member Data Documentation

TcpConnection* HttpTestCommandProcessor::m_connection [private]
 

Definition at line 22 of file HttpTestCommandProcessor.h.

TcpConnection* HttpTestCommandProcessor::m_listener [private]
 

Definition at line 21 of file HttpTestCommandProcessor.h.


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:31:56 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001