Networking TS

PrevUpHomeNext
basic_stream_socket::release (1 of 2 overloads)

Inherited from basic_socket.

Release ownership of the underlying native socket.

native_handle_type release();

This function causes all outstanding asynchronous connect, send and receive operations to finish immediately, and the handlers for cancelled operations will be passed the std::experimental::net::v1::error::operation_aborted error. Ownership of the native socket is then transferred to the caller.

Exceptions

std::system_error

Thrown on failure.

Remarks

This function is unsupported on Windows versions prior to Windows 8.1, and will fail with std::experimental::net::v1::error::operation_not_supported on these platforms.


PrevUpHomeNext