void xtd::net::sockets::socket::set_socket_option | ( | xtd::net::sockets::socket_option_name | socket_option_name, |
const xtd::net::sockets::multicast_option & | option_value | ||
) |
Sets the linger xtd::net::sockets::socket option to the specified integer value.
socket_option_name | One of the xtd::net::sockets::socket_option_name values. Only xtd::net::sockets::socket_option_name::add_membership and xtd::net::sockets::socket_option_name::drop_membership values are accepted. |
option_value | A value of the option. |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the socket. |
xtd::object_closed_exception | The xtd::net::sockets::socket has been closed. |