15#include <boost/shared_ptr.hpp>
29class HttpListenerImpl;
101 const unsigned short server_port,
152 boost::shared_ptr<HttpListenerImpl>
impl_;
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
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).
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.
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.
void setTlsContext(const asiolink::TlsContextPtr &context)
Sets reference of the current TLS context.
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.