| Home | Libraries | People | FAQ | More

#### basic_socket_acceptor::accept

Accept a new connection.

    template<
        typename SocketService>
    void accept(
        basic_socket< protocol_type, SocketService > & peer);
      » more...

    template<
        typename SocketService>
    boost::system::error_code accept(
        basic_socket< protocol_type, SocketService > & peer,
        boost::system::error_code & ec);
      » more...

Accept a new connection and obtain the endpoint of the peer.

    template<
        typename SocketService>
    void accept(
        basic_socket< protocol_type, SocketService > & peer,
        endpoint_type & peer_endpoint);
      » more...

    template<
        typename SocketService>
    boost::system::error_code accept(
        basic_socket< protocol_type, SocketService > & peer,
        endpoint_type & peer_endpoint,
        boost::system::error_code & ec);
      » more...