OptionaldstOptionaldstThe destination port for the outgoing packet.
Defaults to the port from the constructor options.
OptionalsrcThe source address to use for the outgoing packet.
If not specified (and useMulticastSocket is not set), the packet is sent
from all underlying unicast sockets.
OptionaluseIf true, sends the packet via the shared multicast socket instead of the
per-interface unicast sockets. Combine with srcAddress to control which
interface the multicast socket uses; without it, the OS chooses the interface.
Concurrency caveat: when useMulticastSocket and srcAddress are combined,
the call sequence setMulticastInterface(srcAddress) then send(...) mutates
per-socket state on the shared multicast socket. Concurrent calls with
different srcAddress values will race. Serialize them in the caller or use
the default per-interface unicast path, which is race-free.
The destination address for the outgoing packet.
Defaults to the
multicastGroupaddress from the constructor options. Set this to send a unicast message to a specific host instead.