7 #ifndef HTTP_LISTENER_H
8 #define HTTP_LISTENER_H
15 #include <boost/shared_ptr.hpp>
29 class HttpListenerImpl;
101 const unsigned short server_port,
135 boost::shared_ptr<HttpListenerImpl>
impl_;
RequestTimeout(long value)
Constructor.
~HttpListener()
Destructor.
boost::shared_ptr< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
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.
boost::shared_ptr< HttpListenerImpl > impl_
Pointer to the implementation of the HttpListener.
HttpListenerError(const char *file, size_t line, const char *what)
The IOService class is a wrapper for the ASIO io_service class.
boost::shared_ptr< TlsContext > TlsContextPtr
The type of shared pointers to TlsContext objects.
asiolink::IOAddress getLocalAddress() const
Returns local address on which server is listening.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
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.
HttpListener(asiolink::IOService &io_service, const asiolink::IOAddress &server_address, const unsigned short server_port, const asiolink::TlsContextPtr &tls_context, const HttpResponseCreatorFactoryPtr &creator_factory, const RequestTimeout &request_timeout, const IdleTimeout &idle_timeout)
Constructor.
void stop()
Stops all active connections and shuts down the service.
uint16_t getLocalPort() const
Returns local port on which server is listening.
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)
HTTP request timeout value.