socket & xtd::net::sockets::socket::enable_broadcast | ( | bool | value | ) |
Sets a bool value that specifies whether the xtd::net::sockets::socket can send or receive broadcast packets.
value | true if the xtd::net::sockets::socket allows broadcast packets; otherwise, false. The default is false. |
xtd::net::sockets::socket_exception | This option is valid for a datagram socket only. |
xtd::object_closed_exception | The xtd::net::sockets::socket has been closed. |