UDPSocket.Write

From Xojo Documentation

Method

UDPSocket.Write(Data as DataGram)

Supported for all project types and targets.

Writes the data to the specified address.


Method

UDPSocket.Write(Address as String, Data as String)

Supported for all project types and targets.

Constructs a Datagram and sends the data to the specified address.

If the address is part of a multicast group, all members of the group will get the data. If the address is the broadcast address, everyone on the network will get the data. If the address is an IP address, the data is unicast to that address only.

Example

This example uses BroadcastAddress to get the address of the group.

UDPSocket1.Write(UDPSocket1.BroadcastAddress, "Hello World")