COGS can send low-level network requests over the UDP protocol to other machines on the network.
⚠️ Note that the UDP protocol, while fast and efficient, does not guarantee successful delivery of UDP messages.
You will need to know the IP addresses of the machines you want to send messages to and the port number each machine is listening on.
Enable UDP in your COGS project in the “Build” view under “Show settings”.
Open the UDP panel on the left of the screen and add a “Destination”.
Set the IP address and port of your UDP server on the destination.
In a behaviour, add a “Send UDP message” action.
Select the destination you want to send the message to.
You can now enter a string that will be sent as raw UTF-8 data to the IP address and port for this destination.
You can use a Computed Value to construct a string and further customise the data that is sent.