#include <HttpTestCommandProcessor.h>
Inheritance diagram for HttpTestCommandProcessor::
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 | |
TcpConnection * | m_listener |
TcpConnection * | m_connection |
|
Definition at line 4 of file HttpTestCommandProcessor.cpp. |
|
Definition at line 29 of file HttpTestCommandProcessor.cpp. |
|
Send an HTTP/HTML page back to the user.
Reimplemented from CommandProcessor. Definition at line 94 of file HttpTestCommandProcessor.cpp. |
|
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. |
|
Reimplemented from CommandProcessor. Definition at line 18 of file HttpTestCommandProcessor.cpp. |
|
Reimplemented from CommandProcessor. Definition at line 156 of file HttpTestCommandProcessor.cpp. |
|
Definition at line 22 of file HttpTestCommandProcessor.h. |
|
Definition at line 21 of file HttpTestCommandProcessor.h. |