15#include <boost/shared_ptr.hpp>
29class HttpListenerImpl;
101 const unsigned short server_port,
149 boost::shared_ptr<HttpListenerImpl>
impl_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
The IOAddress class represents an IP addresses (version agnostic)
A generic error raised by the HttpListener class.
HttpListenerError(const char *file, size_t line, const char *what)
const asiolink::TlsContextPtr & getTlsContext() const
Returns reference to the current TLS context.
HttpListener(const asiolink::IOServicePtr &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.
uint16_t getLocalPort() const
Returns local port on which server is listening.
asiolink::IOAddress getLocalAddress() const
Returns local address on which server is listening.
void addExternalSockets(bool use_external=false)
Use external sockets flag.
~HttpListener()
Destructor.
void stop()
Stops all active connections and shuts down the service.
void start()
Starts accepting new connections.
int getNative() const
file descriptor of the underlying acceptor socket.
boost::shared_ptr< HttpListenerImpl > impl_
Pointer to the implementation of the HttpListener.
boost::shared_ptr< TlsContext > TlsContextPtr
The type of shared pointers to TlsContext objects.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
boost::shared_ptr< const HttpListener > ConstHttpListenerPtr
Pointer to the const HttpListener.
boost::shared_ptr< HttpListener > HttpListenerPtr
Pointer to the HttpListener.
boost::shared_ptr< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
Defines the logger used by the top-level component of kea-lfc.
long value_
Connection idle timeout value specified.
IdleTimeout(long value)
Constructor.
HTTP request timeout value.
RequestTimeout(long value)
Constructor.
long value_
Request timeout value specified.