Function PacketPeerUDP.setBroadcastEnabled

Enable or disable sending of broadcast packets (e.g. set_dest_address("255.255.255.255", 4343). This option is disabled by default.

void setBroadcastEnabled (
  const(bool) enabled
) nothrow @nogc;

Note

Some Android devices might require the CHANGE_WIFI_MULTICAST_STATE permission and this option to be enabled to receive broadcast packets too.