MCPcopy Create free account
hub / github.com/alibaba/async_simple / async_accept

Function async_accept

demo_example/asio/asio/basic_socket_acceptor.hpp:1372–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 /**

Callers 3

startMethod · 0.50
startMethod · 0.50

Calls 3

get_executorMethod · 0.45

Tested by

no test coverage detected