void xtd::net::sockets::socket::set_ip_protection_level | ( | xtd::net::sockets::ip_protection_level | level | ) |
Sets the IP protection level on a socket.
level | The IP protection level to set on this socket.The IP protection level to set on this socket. |
xtd::argument_exception | The level argument is set to xtd::net::sockets::ip_protection_level::unspecified. |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the socket. |
xtd::not_supported_exception | The socket is not in the xtd::net::sockets::address_family::inter_network_v6 or xtd::net::sockets::address_family::inter_network address families. |