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

Function accept

demo_example/asio/asio/basic_socket_acceptor.hpp:1276–1285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274 */
1275 template <typename Protocol1, typename Executor1>
1276 void accept(basic_socket<Protocol1, Executor1>& peer,
1277 typename constraint<
1278 is_convertible<Protocol, Protocol1>::value
1279 >::type = 0)
1280 {
1281 asio::error_code ec;
1282 impl_.get_service().accept(impl_.get_implementation(),
1283 peer, static_cast<endpoint_type*>(0), ec);
1284 asio::detail::throw_error(ec, "accept");
1285 }
1286
1287 /// Accept a new connection.
1288 /**

Callers 1

startMethod · 0.50

Calls 3

throw_errorFunction · 0.85
acceptMethod · 0.45
get_executorMethod · 0.45

Tested by

no test coverage detected