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

Function accept

include/asio/basic_socket_acceptor.hpp:1260–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258 */
1259 template <typename Protocol1, typename Executor1>
1260 void accept(basic_socket<Protocol1, Executor1>& peer,
1261 typename enable_if<
1262 is_convertible<Protocol, Protocol1>::value
1263 >::type* = 0)
1264 {
1265 asio::error_code ec;
1266 impl_.get_service().accept(impl_.get_implementation(),
1267 peer, static_cast<endpoint_type*>(0), ec);
1268 asio::detail::throw_error(ec, "accept");
1269 }
1270
1271 /// Accept a new connection.
1272 /**

Callers

nothing calls this directly

Calls 3

throw_errorFunction · 0.85
acceptMethod · 0.45
get_executorMethod · 0.45

Tested by

no test coverage detected