Loading...
Searching...
No Matches
◆ 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_level | The platform-defined option level. |
socket_option_name | The platform-defined option name. |
option_value | The 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
-
- 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.