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>
60 void asyncAccept(
const TCPSocket<SocketCallback>& socket, C& callback) {
Base class for acceptor services in Kea.
void asyncAcceptInternal(const SocketType &socket, const CallbackType &callback)
Asynchronously accept new connection.
Provides a service for accepting new TCP connections.
virtual int getProtocol() const final
Returns protocol of the socket.
TCPAcceptor(const IOServicePtr &io_service)
Constructor.
void asyncAccept(const TCPSocket< SocketCallback > &socket, C &callback)
Asynchronously accept new connection.
A wrapper interface for the ASIO library.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
Defines the logger used by the top-level component of kea-lfc.