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

Function assign

demo_example/asio/asio/basic_socket_acceptor.hpp:516–523  ·  view source on GitHub ↗

Assigns an existing native acceptor to the acceptor. * This function opens the acceptor to hold an existing native acceptor. * * @param protocol An object specifying which protocol is to be used. * * @param native_acceptor A native acceptor. * * @throws asio::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

514 * @throws asio::system_error Thrown on failure.
515 */
516 void assign(const protocol_type& protocol,
517 const native_handle_type& native_acceptor)
518 {
519 asio::error_code ec;
520 impl_.get_service().assign(impl_.get_implementation(),
521 protocol, native_acceptor, ec);
522 asio::detail::throw_error(ec, "assign");
523 }
524
525 /// Assigns an existing native acceptor to the acceptor.
526 /*

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected