EPICS ARCHIVER V4
|
An in-memory web server. More...
#include <HTTPServer.h>
Public Member Functions | |
HTTPServer (short port, PathHandlerList *handlers, void *user_arg) | |
Create a HTTPServer. More... | |
void | start () |
Start accepting connections (launch thread). More... | |
void | run () |
Part of the epicsThreadRunable interface. More... | |
void | serverinfo (SOCKET socket) |
Dump HTML page with server info to socket. More... | |
PathHandlerList * | getHandlers () const |
void * | getUserArg () const |
bool | isShuttingDown () const |
An in-memory web server.
Waits for connections on the given TCP port, creates an HTTPClientConnection for each incoming, well, client.
The HTTPClientConnection then needs to handle the incoming requests and produce appropriate and hopefully strikingly beautiful HTML pages.
HTTPServer::HTTPServer | ( | short | port, |
PathHandlerList * | handlers, | ||
void * | user_arg | ||
) |
Create a HTTPServer.
port | The TCP port number where the server listens. |
handlers | handlers |
user_arg | user arguments |
GenericException | when port unavailable. |
|
inline |
|
inline |
|
inline |
void HTTPServer::run | ( | ) |
Part of the epicsThreadRunable interface.
Do not call directly!
void HTTPServer::serverinfo | ( | SOCKET | socket | ) |
Dump HTML page with server info to socket.
void HTTPServer::start | ( | ) |
Start accepting connections (launch thread).