| 1370 | template <typename Protocol1, typename Executor1, |
| 1371 | ASIO_COMPLETION_TOKEN_FOR(void (asio::error_code)) |
| 1372 | AcceptHandler ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)> |
| 1373 | ASIO_INITFN_AUTO_RESULT_TYPE(AcceptHandler, |
| 1374 | void (asio::error_code)) |
| 1375 | async_accept(basic_socket<Protocol1, Executor1>& peer, |
| 1376 | ASIO_MOVE_ARG(AcceptHandler) handler |
| 1377 | ASIO_DEFAULT_COMPLETION_TOKEN(executor_type), |
| 1378 | typename constraint< |
| 1379 | is_convertible<Protocol, Protocol1>::value |
| 1380 | >::type = 0) |
| 1381 | { |
| 1382 | return async_initiate<AcceptHandler, void (asio::error_code)>( |
| 1383 | initiate_async_accept(this), handler, |
| 1384 | &peer, static_cast<endpoint_type*>(0)); |
| 1385 | } |
| 1386 | |
| 1387 | /// Accept a new connection and obtain the endpoint of the peer |
| 1388 | /** |
no test coverage detected