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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

socket_acceptor_service::accept

Accept a new connection.

template<
    typename Protocol1,
    typename SocketService>
boost::system::error_code accept(
    implementation_type & impl,
    basic_socket< Protocol1, SocketService > & peer,
    endpoint_type * peer_endpoint,
    boost::system::error_code & ec,
    typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type *  = 0);

PrevUpHomeNext