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

Function assign

include/asio/basic_socket.hpp:458–465  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

456 * @throws asio::system_error Thrown on failure.
457 */
458 void assign(const protocol_type& protocol,
459 const native_handle_type& native_socket)
460 {
461 asio::error_code ec;
462 impl_.get_service().assign(impl_.get_implementation(),
463 protocol, native_socket, ec);
464 asio::detail::throw_error(ec, "assign");
465 }
466
467 /// Assign an existing native socket to the socket.
468 /*

Callers 5

permissionsFunction · 0.50
filesystem.hppFile · 0.50

Calls 2

throw_errorFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected