xtd 0.2.0

◆ get_raw_socket_option()

size_t xtd::net::sockets::socket::get_raw_socket_option ( int32  socket_option_level,
int32  socket_option_name,
intptr  option_value,
size_t  size_option_value 
) const

Gets a socket option value using platform-specific level and name identifiers.

Parameters
socket_option_levelThe platform-defined option level.
socket_option_nameThe platform-defined option name.
option_valueThe pointer into which the retrieved option value should be stored.
Returns
The number of bytes written into option_value for a successfully retrieved value.
Exceptions
xtd::net::sockets::socket_exceptionAn error occurred when attempting to access the socket.
xtd::object_closed_exceptionThe xtd::net::sockets::socket has been closed.
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.