MetriVis | Overview | Download | User Manual | Development |
Reference | Overview | Design Documentation | Reference Backend | Reference Frontend |
#include <RawDataDispatcher.h>
Public Member Functions | |
RawDataDispatcher (int clone_id=-1) | |
virtual | ~RawDataDispatcher () |
virtual int | Init () |
Initializes the RawDataDispatcher class. | |
virtual int | Uninit () |
Uninitializes the RawDataDispatcher class. | |
Protected Member Functions | |
virtual void | Run () |
Listens for incomming connection requests. |
Incoming connections are handled within this class. To handle and parse http requests a slightly changed version of the easyHTTPD framework is used ( http://sourceforge.net/projects/ehttpd/).
metrivis::RawDataDispatcher::RawDataDispatcher | ( | int | clone_id = -1 |
) |
Constructor for RawDataDispatcher class
Default constructor. See header file for overview.
metrivis::RawDataDispatcher::~RawDataDispatcher | ( | ) | [virtual] |
Deconstructor for RawDataDispatcher class
Grounds all variables to initial values to minimize lucky post-mortem usage. See header file for overview.
int metrivis::RawDataDispatcher::Init | ( | ) | [virtual] |
Initializes the RawDataDispatcher class.
Makes the RawDataDispatcher ready to handle requests. Must be called before listen() is called.
Initialization of the RawDataDispatcher. See header file for overview.
Reimplemented from metrivis::Thread.
int metrivis::RawDataDispatcher::Uninit | ( | ) | [virtual] |
Uninitializes the RawDataDispatcher class.
After stopping the listening thread the driver may be uninitialized. This frees the socket again.
Uninitialization of the RawDataDispatcher. See header file for overview.
Reimplemented from metrivis::Thread.
void metrivis::RawDataDispatcher::Run | ( | ) | [protected, virtual] |
Listens for incomming connection requests.
Function is run by an internal thread that is triggered with the StartListening() function.
Reimplemented from metrivis::RequestDispatcher.