MCPcopy Create free account
hub / github.com/boostorg/asio / async_accept

Function async_accept

include/boost/asio/basic_socket_acceptor.hpp:1389–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387 BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code))
1388 AcceptToken = default_completion_token_t<executor_type>>
1389 auto async_accept(basic_socket<Protocol1, Executor1>& peer,
1390 AcceptToken&& token = default_completion_token_t<executor_type>(),
1391 constraint_t<
1392 is_convertible<Protocol, Protocol1>::value
1393 > = 0)
1394 -> decltype(
1395 async_initiate<AcceptToken, void (boost::system::error_code)>(
1396 declval<initiate_async_accept>(), token,
1397 &peer, static_cast<endpoint_type*>(0)))
1398 {
1399 return async_initiate<AcceptToken, void (boost::system::error_code)>(
1400 initiate_async_accept(this), token,
1401 &peer, static_cast<endpoint_type*>(0));
1402 }
1403
1404 /// Accept a new connection and obtain the endpoint of the peer
1405 /**

Callers

nothing calls this directly

Calls 3

get_executorMethod · 0.45

Tested by

no test coverage detected