ofxHTTP
A collection of tools for HTTP.
|
The BaseServer class defines a default server. More...
#include <BaseServer.h>
Public Member Functions | |
BaseServer_ (const SettingsType &settings=SettingsType(), Poco::ThreadPool &rThreadPool=Poco::ThreadPool::defaultPool()) | |
void | start () |
void | stop () |
void | restart () |
bool | isRunning () const |
virtual void | setup (const SettingsType &settings) |
const SettingsType & | settings () const |
std::string | url () const |
void | addRoute (AbstractRoute *pRoute) |
void | removeRoute (AbstractRoute *pRoute) |
void | onHTTPServerEvent (const void *pSender, ServerEventArgs &evt) |
Poco::Net::HTTPRequestHandler * | createRequestHandler (const Poco::Net::HTTPServerRequest &request) |
void | exit (ofEventArgs &) |
SessionStoreType & | sessionStore () |
Public Member Functions inherited from ofx::HTTP::AbstractServer | |
virtual | ~AbstractServer () |
Destroy the AbstractServer. | |
Public Attributes | |
ServerEvents | events |
A collection of server events. | |
Protected Types | |
enum | { DEFAULT_BACKLOG = 63 } |
Protected Member Functions | |
virtual Poco::ThreadPool & | getThreadPool () |
The BaseServer class defines a default server.
The BaseServer template must be initialized with a settings type.
|
inlinevirtual |
Implements ofx::HTTP::AbstractServer.