xtd 0.2.0
Loading...
Searching...
No Matches

◆ io_control() [1/2]

size_t xtd::net::sockets::socket::io_control ( int32  io_control_code,
std::vector< xtd::byte > &  option_in_value,
std::vector< xtd::byte > &  option_out_value 
)

Sets low-level operating modes for the xtd::net::sockets::socket using numerical control codes.

Parameters
io_control_codeAn int32 value that specifies the control code of the operation to perform.
option_in_valueA byte array that contains the input data required by the operation.
option_out_valueA byte array that contains the output data returned by the operation.
Returns
The number of bytes in the option_out_value parameter.
Remarks
The xtd::net::sockets::socket::io_control method provides low-level access to the operating system xtd::net::sockets::socket underlying the current instance of the xtd::net::sockets::socket class.
Note
If you receive a xtd::net::sockets::socket_exception, use the xtd::net::sockets::socket_exception xtd::net::sockets::socket_exception::error_code property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.