20 const unsigned short server_port,
26 tls_context, creator_factory,
27 request_timeout.value_,
28 idle_timeout.value_)) {
37 return (
impl_->getEndpoint().getAddress());
42 return (
impl_->getEndpoint().getPort());
47 return (
impl_->getTlsContext());
52 return (
impl_->getNative());
57 impl_->addExternalSockets(use_external);
The IOAddress class represents an IP addresses (version agnostic)
Implementation of the HttpListener.
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< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
Defines the logger used by the top-level component of kea-lfc.
HTTP request timeout value.