|
Asio Extensions
Additional functionality built on top of (Boost.)Asio
|
Duplicate a native file handle. More...
Functions | |
| unique_file_handle | asioext::duplicate (file_handle handle) |
| Duplicate the given file_handle's native handle. More... | |
| unique_file_handle | asioext::duplicate (file_handle handle, error_code &ec) noexcept |
| Duplicate the given file_handle's native handle. More... | |
Duplicate a native file handle.
Duplicate a file handle, resulting in a new native handle referring to the same file.
| unique_file_handle asioext::duplicate | ( | file_handle | handle | ) |
Duplicate the given file_handle's native handle.
This function duplicates the native handle and returns a unique_file_handle object wrapping it.
| handle | The file_handle containing the native handle to duplicate. |
| asio::system_error | Thrown on failure. |
|
noexcept |
Duplicate the given file_handle's native handle.
This function duplicates the native handle and returns a unique_file_handle object wrapping it.
| handle | The file_handle containing the native handle to duplicate. |
| ec | Set to indicate what error occurred. If no error occurred, the object is reset. |
handle.