11#error "asio.hpp must be included before including this, see asiolink.h as to why" 
   33template<
typename ProtocolType, 
typename CallbackType>
 
   59    template<
typename Endpo
intType>
 
   60    void open(
const EndpointType& endpoint) {
 
   61        acceptor_->open(endpoint.getASIOEndpoint().protocol());
 
 
   70    template<
typename Endpo
intType>
 
   71    void bind(
const EndpointType& endpoint) {
 
   72        acceptor_->bind(endpoint.getASIOEndpoint());
 
 
   81    template<
typename SettableSocketOption>
 
   82    void setOption(
const SettableSocketOption& socket_option) {
 
 
  116    template<
typename SocketType>
 
  118                             const CallbackType& callback) {
 
  119        acceptor_->async_accept(socket.getASIOSocket(), callback);
 
 
  126    boost::shared_ptr<typename ProtocolType::acceptor> 
acceptor_;
 
 
IOAcceptor(const IOServicePtr &io_service)
Constructor.
virtual ~IOAcceptor()
Destructor.
bool isOpen() const
Checks if the acceptor is open.
void close() const
Closes the acceptor.
void listen()
Starts listening new connections.
void asyncAcceptInternal(const SocketType &socket, const CallbackType &callback)
Asynchronously accept new connection.
IOServicePtr io_service_
The IO service used to handle events.
boost::shared_ptr< typename ProtocolType::acceptor > acceptor_
Underlying ASIO acceptor implementation.
virtual int getNative() const
Returns file descriptor of the underlying socket.
void setOption(const SettableSocketOption &socket_option)
Sets socket option.
void open(const EndpointType &endpoint)
Opens acceptor socket given the endpoint.
void bind(const EndpointType &endpoint)
Binds socket to an endpoint.
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.