Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

basic_socket_acceptor::accept

Accept a new connection.

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

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

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

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

PrevUpHomeNext