cxxtools::http::Server Class Reference

#include <cxxtools/http/server.h>

Public Types

enum  Runmode {
  Stopped, Starting, Running, Terminating,
  Failed
}

Public Member Functions

 Server (EventLoopBase &eventLoop)
 Server (EventLoopBase &eventLoop, const std::string &ip, unsigned short int port, int backlog=64)
 Server (EventLoopBase &eventLoop, unsigned short int port, int backlog=64)
 ~Server ()
void listen (const std::string &ip, unsigned short int port, int backlog=64)
void listen (unsigned short int port, int backlog=64)
void loadSslCertificateFile (const std::string &certificateFile, const std::string &privateKeyFile=std::string())
void addService (const std::string &url, Service &service)
void addService (const Regex &url, Service &service)
void removeService (Service &service)
Milliseconds readTimeout () const
Milliseconds writeTimeout () const
Milliseconds keepAliveTimeout () const
void readTimeout (Milliseconds ms)
void writeTimeout (Milliseconds ms)
void keepAliveTimeout (Milliseconds ms)
unsigned minThreads () const
void minThreads (unsigned m)
unsigned maxThreads () const
void maxThreads (unsigned m)

Public Attributes

Signal< RunmoderunmodeChanged

Member Enumeration Documentation

Enumerator:
Stopped 
Starting 
Running 
Terminating 
Failed 

Constructor & Destructor Documentation

cxxtools::http::Server::Server ( EventLoopBase eventLoop)
explicit
cxxtools::http::Server::Server ( EventLoopBase eventLoop,
const std::string &  ip,
unsigned short int  port,
int  backlog = 64 
)
cxxtools::http::Server::Server ( EventLoopBase eventLoop,
unsigned short int  port,
int  backlog = 64 
)
cxxtools::http::Server::~Server ( )

Member Function Documentation

void cxxtools::http::Server::addService ( const std::string &  url,
Service service 
)
void cxxtools::http::Server::addService ( const Regex url,
Service service 
)
Milliseconds cxxtools::http::Server::keepAliveTimeout ( ) const
void cxxtools::http::Server::keepAliveTimeout ( Milliseconds  ms)
void cxxtools::http::Server::listen ( const std::string &  ip,
unsigned short int  port,
int  backlog = 64 
)
void cxxtools::http::Server::listen ( unsigned short int  port,
int  backlog = 64 
)
void cxxtools::http::Server::loadSslCertificateFile ( const std::string &  certificateFile,
const std::string &  privateKeyFile = std::string() 
)
unsigned cxxtools::http::Server::maxThreads ( ) const
void cxxtools::http::Server::maxThreads ( unsigned  m)
unsigned cxxtools::http::Server::minThreads ( ) const
void cxxtools::http::Server::minThreads ( unsigned  m)
Milliseconds cxxtools::http::Server::readTimeout ( ) const
void cxxtools::http::Server::readTimeout ( Milliseconds  ms)
void cxxtools::http::Server::removeService ( Service service)
Milliseconds cxxtools::http::Server::writeTimeout ( ) const
void cxxtools::http::Server::writeTimeout ( Milliseconds  ms)

Member Data Documentation

Signal<Runmode> cxxtools::http::Server::runmodeChanged

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