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());
The IOAddress class represents an IP addresses (version agnostic)
The IOService class is a wrapper for the ASIO io_service class.
Implementation of the HttpListener.
uint16_t getLocalPort() const
Returns local port on which server is listening.
asiolink::IOAddress getLocalAddress() const
Returns local address on which server is listening.
~HttpListener()
Destructor.
void stop()
Stops all active connections and shuts down the service.
void start()
Starts accepting new connections.
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.
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< HttpResponseCreatorFactory > HttpResponseCreatorFactoryPtr
Pointer to the HttpResponseCreatorFactory.
Defines the logger used by the top-level component of kea-lfc.
HTTP request timeout value.