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 to view this page for the latest version.
PrevUpHomeNext

basic_socket_acceptor::accept

Accept a new connection.

template<
    typename Protocol1>
void accept(
    basic_socket< Protocol1 > & peer,
    typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type *  = 0);
  » more...

template<
    typename Protocol1>
void accept(
    basic_socket< Protocol1 > & peer,
    boost::system::error_code & ec,
    typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type *  = 0);
  » more...

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

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

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

Protocol::socket accept();
  » more...

Protocol::socket accept(
    boost::system::error_code & ec);
  » more...

Protocol::socket accept(
    boost::asio::io_context & io_context);
  » more...

Protocol::socket accept(
    boost::asio::io_context & io_context,
    boost::system::error_code & ec);
  » more...

Protocol::socket accept(
    endpoint_type & peer_endpoint);
  » more...

Protocol::socket accept(
    endpoint_type & peer_endpoint,
    boost::system::error_code & ec);
  » more...

Protocol::socket accept(
    boost::asio::io_context & io_context,
    endpoint_type & peer_endpoint);
  » more...

Protocol::socket accept(
    boost::asio::io_context & io_context,
    endpoint_type & peer_endpoint,
    boost::system::error_code & ec);
  » more...

PrevUpHomeNext