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 boost::system::system_error Thrown on failure. */
| 516 | * @throws boost::system::system_error Thrown on failure. |
| 517 | */ |
| 518 | void assign(const protocol_type& protocol, |
| 519 | const native_handle_type& native_acceptor) |
| 520 | { |
| 521 | boost::system::error_code ec; |
| 522 | impl_.get_service().assign(impl_.get_implementation(), |
| 523 | protocol, native_acceptor, ec); |
| 524 | boost::asio::detail::throw_error(ec, "assign"); |
| 525 | } |
| 526 | |
| 527 | /// Assigns an existing native acceptor to the acceptor. |
| 528 | /* |
nothing calls this directly
no test coverage detected