| 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 | /** |
nothing calls this directly
no test coverage detected