ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::BaseServer_< SettingsType, SessionStoreType > Class Template Reference

The BaseServer class defines a default server. More...

#include <BaseServer.h>

Inheritance diagram for ofx::HTTP::BaseServer_< SettingsType, SessionStoreType >:
ofx::HTTP::AbstractServer

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 ()
 

Detailed Description

template<typename SettingsType, typename SessionStoreType>
class ofx::HTTP::BaseServer_< SettingsType, SessionStoreType >

The BaseServer class defines a default server.

The BaseServer template must be initialized with a settings type.

Member Function Documentation

◆ sessionStore()

template<typename SettingsType, typename SessionStoreType>
SessionStoreType& ofx::HTTP::BaseServer_< SettingsType, SessionStoreType >::sessionStore ( )
inlinevirtual
Returns
a reference to the session store.

Implements ofx::HTTP::AbstractServer.


The documentation for this class was generated from the following file: