Function PacketPeerUDP.setDestAddress

Sets the destination address and port for sending packets and variables. A hostname will be resolved using DNS if needed.

godot.core.defs.GodotError setDestAddress (
  const(String) host,
  const(long) port
) nothrow @nogc;

Note

setBroadcastEnabled must be enabled before sending packets to a broadcast address (e.g. 255.255.255.255).