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_;
RequestTimeout(long value)
Constructor.
~HttpListener()
Destructor.
boost::shared_ptr< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
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.
IdleTimeout(long value)
Constructor.
boost::shared_ptr< const HttpListener > ConstHttpListenerPtr
Pointer to the const HttpListener.
void start()
Starts accepting new connections.
A generic error raised by the HttpListener class.
HttpListenerError(const char *file, size_t line, const char *what)
uint16_t getLocalPort() const
Returns local port on which server is listening.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
The IOService class is a wrapper for the ASIO io_service 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.
void stop()
Stops all active connections and shuts down the service.
long value_
Connection idle timeout value specified.
boost::shared_ptr< HttpListener > HttpListenerPtr
Pointer to the HttpListener.
long value_
Request timeout value specified.
The IOAddress class represents an IP addresses (version agnostic)
asiolink::IOAddress getLocalAddress() const
Returns local address on which server is listening.
HTTP request timeout value.