MCPcopy Create free account
hub / github.com/cinder/Cinder / async_accept

Function async_accept

include/asio/basic_socket_acceptor.hpp:1346–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

get_executorMethod · 0.45

Tested by

no test coverage detected