10 #ifndef BOOST_ASIO_HPP
11 #error "asio.hpp must be included before including this, see asiolink.h as to why"
19 #include <boost/shared_ptr.hpp>
20 #include <netinet/in.h>
59 template<
typename SocketCallback>
Provides a service for accepting new TCP connections.
Base class for acceptor services in Kea.
The IOService class is a wrapper for the ASIO io_service class.
virtual int getProtocol() const final
Returns protocol of the socket.
void asyncAccept(const TCPSocket< SocketCallback > &socket, C &callback)
Asynchronously accept new connection.
Defines the logger used by the top-level component of kea-dhcp-ddns.
A wrapper interface for the ASIO library.
void asyncAcceptInternal(const SocketType &socket, const CallbackType &callback)
Asynchronously accept new connection.
TCPAcceptor(IOService &io_service)
Constructor.