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. */
| 387 | * @throws asio::system_error Thrown on failure. |
| 388 | */ |
| 389 | void assign(const protocol_type& protocol, |
| 390 | const native_handle_type& native_acceptor) |
| 391 | { |
| 392 | asio::error_code ec; |
| 393 | this->get_service().assign(this->get_implementation(), |
| 394 | protocol, native_acceptor, ec); |
| 395 | asio::detail::throw_error(ec, "assign"); |
| 396 | } |
| 397 | |
| 398 | /// Assigns an existing native acceptor to the acceptor. |
| 399 | /* |
nothing calls this directly
no test coverage detected