15#include <boost/pointer_cast.hpp>
21namespace ph = std::placeholders;
28 const uint16_t family,
30 const uint16_t thread_pool_size ,
33 const size_t max_concurrent_queries )
35 this, ph::_1, ph::_2, ph::_3, ph::_4, ph::_5,
37 address, port, thread_pool_size, context,
40 max_concurrent_queries_(max_concurrent_queries) {
47 const unsigned short server_port,
58 max_concurrent_queries_));
The IOAddress class represents an IP addresses (version agnostic)
Derivation of TcpListener specific to Bulk Lease Query.
tcp::TcpListenerPtr listenerFactory(const asiolink::IOServicePtr &io_service, const asiolink::IOAddress &server_address, const unsigned short server_port, const asiolink::TlsContextPtr &tls_context, const tcp::TcpListener::IdleTimeout &idle_timeout, const tcp::TcpConnectionFilterCallback &connection_filter)
Defines a factory function for creating listeners.
virtual ~MtLeaseQueryListenerMgr()
Destructor.
MtLeaseQueryListenerMgr(const asiolink::IOAddress &address, const uint16_t port, const uint16_t family, const tcp::TcpListener::IdleTimeout &idle_timeout, const uint16_t thread_pool_size=1, asiolink::TlsContextPtr context=asiolink::TlsContextPtr(), tcp::TcpConnectionFilterCallback connection_filter=0, const size_t max_concurrent_queries=0)
Constructor.
MtTcpListenerMgr(TcpListenerFactory listener_factory, const asiolink::IOAddress &address, const uint16_t port, const uint16_t thread_pool_size=1, asiolink::TlsContextPtr context=asiolink::TlsContextPtr(), TcpConnectionFilterCallback connection_filter=0)
Constructor.
void setIdleTimeout(long milliseconds)
Sets the idle time per connection.
void stop()
Stops the listener's thread pool.
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.
std::function< bool(const boost::asio::ip::tcp::endpoint &)> TcpConnectionFilterCallback
Type of the callback for filtering new connections by ip address.
boost::shared_ptr< TcpListener > TcpListenerPtr
Pointer to a TcpListener.
Defines the logger used by the top-level component of kea-lfc.
long value_
Connection idle timeout value specified.