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

ProxyCommandProcessor Class Reference

#include <ProxyCommandProcessor.h>

Inheritance diagram for ProxyCommandProcessor::

CommandProcessor BasicObject List of all members.

Public Methods

 ProxyCommandProcessor (int proxyPort=PROXY_PORT)
virtual void stopThread ()
virtual void toStream (std::ostream &out)

Protected Methods

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

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

virtual void generateError (std::string *input, std::ostream &out)

Private Attributes

TcpConnectionm_listener
TcpConnectionm_connection

Constructor & Destructor Documentation

ProxyCommandProcessor::ProxyCommandProcessor int proxyPort = PROXY_PORT
 

Definition at line 4 of file ProxyCommandProcessor.cpp.


Member Function Documentation

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

Send an HTTP/HTML page back to the user.

Reimplemented from CommandProcessor.

Definition at line 75 of file ProxyCommandProcessor.cpp.

void ProxyCommandProcessor::generateError std::string * input,
std::ostream & output
[protected, virtual]
 

Reimplemented from CommandProcessor.

Definition at line 84 of file ProxyCommandProcessor.cpp.

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

This is the main loop for the ProxyCommandProcessor 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 29 of file ProxyCommandProcessor.cpp.

void ProxyCommandProcessor::stopThread [virtual]
 

Reimplemented from CommandProcessor.

Definition at line 13 of file ProxyCommandProcessor.cpp.

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

Reimplemented from CommandProcessor.

Definition at line 110 of file ProxyCommandProcessor.cpp.


Member Data Documentation

TcpConnection* ProxyCommandProcessor::m_connection [private]
 

Definition at line 24 of file ProxyCommandProcessor.h.

TcpConnection* ProxyCommandProcessor::m_listener [private]
 

Definition at line 23 of file ProxyCommandProcessor.h.


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