| 1344 | template <typename Protocol1, typename Executor1, |
| 1345 | ASIO_COMPLETION_TOKEN_FOR(void (asio::error_code)) |
| 1346 | AcceptHandler ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)> |
| 1347 | ASIO_INITFN_AUTO_RESULT_TYPE(AcceptHandler, |
| 1348 | void (asio::error_code)) |
| 1349 | async_accept(basic_socket<Protocol1, Executor1>& peer, |
| 1350 | ASIO_MOVE_ARG(AcceptHandler) handler |
| 1351 | ASIO_DEFAULT_COMPLETION_TOKEN(executor_type), |
| 1352 | typename enable_if< |
| 1353 | is_convertible<Protocol, Protocol1>::value |
| 1354 | >::type* = 0) |
| 1355 | { |
| 1356 | return async_initiate<AcceptHandler, void (asio::error_code)>( |
| 1357 | initiate_async_accept(this), handler, |
| 1358 | &peer, static_cast<endpoint_type*>(0)); |
| 1359 | } |
| 1360 | |
| 1361 | /// Accept a new connection and obtain the endpoint of the peer |
| 1362 | /** |
no test coverage detected