 |
Kea
1.5.0
|
Go to the documentation of this file.
7 #ifndef HTTP_LISTENER_H
8 #define HTTP_LISTENER_H
14 #include <boost/shared_ptr.hpp>
28 class HttpListenerImpl;
99 const unsigned short server_port,
132 boost::shared_ptr<HttpListenerImpl> impl_;
IdleTimeout(long value)
Constructor.
void start()
Starts accepting new connections.
The IOAddress class represents an IP addresses (version agnostic)
boost::shared_ptr< const HttpListener > ConstHttpListenerPtr
Pointer to the const HttpListener.
The IOService class is a wrapper for the ASIO io_service class.
HttpListener(asiolink::IOService &io_service, const asiolink::IOAddress &server_address, const unsigned short server_port, const HttpResponseCreatorFactoryPtr &creator_factory, const RequestTimeout &request_timeout, const IdleTimeout &idle_timeout)
Constructor.
void stop()
Stops all active connections and shuts down the service.
A generic error raised by the HttpListener class.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
asiolink::IOAddress getLocalAddress() const
Returns local address on which server is listening.
HttpListenerError(const char *file, size_t line, const char *what)
uint16_t getLocalPort() const
Returns local port on which server is listening.
boost::shared_ptr< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
HTTP request timeout value.
long value_
Request timeout value specified.
long value_
Connection idle timeout value specified.
RequestTimeout(long value)
Constructor.
boost::shared_ptr< HttpListener > HttpListenerPtr
Pointer to the HttpListener.
~HttpListener()
Destructor.