cxxtools::http::Server Class Reference

#include <cxxtools/http/server.h>

Inheritance diagram for cxxtools::http::Server:
cxxtools::NonCopyable

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 addService (const std::string &url, Service &service)
void addService (const Regex &url, Service &service)
void removeService (Service &service)
std::size_t readTimeout () const
std::size_t writeTimeout () const
std::size_t keepAliveTimeout () const
void readTimeout (std::size_t ms)
void writeTimeout (std::size_t ms)
void keepAliveTimeout (std::size_t ms)
unsigned minThreads () const
void minThreads (unsigned m)
unsigned maxThreads () const
void maxThreads (unsigned m)

Public Attributes

Signal< RunmoderunmodeChanged

Additional Inherited Members

- Private Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

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 
)
std::size_t cxxtools::http::Server::keepAliveTimeout ( ) const
void cxxtools::http::Server::keepAliveTimeout ( std::size_t  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 
)
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)
std::size_t cxxtools::http::Server::readTimeout ( ) const
void cxxtools::http::Server::readTimeout ( std::size_t  ms)
void cxxtools::http::Server::removeService ( Service service)
std::size_t cxxtools::http::Server::writeTimeout ( ) const
void cxxtools::http::Server::writeTimeout ( std::size_t  ms)

Member Data Documentation

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

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