COGS can send low-level network requests over the TCP protocol to other machines on the network.

⚠️ Note that COGS does not provide a mechanism to check for successful delivery of TCP 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 TCP in your COGS project in the “Build” view under “Show settings”.

image.png

image.png

Open the TCP panel on the left of the screen and add a “Destination”.

image.png

Set the IP address and port of your TCP server on the destination.

image.png

In a behaviour, add a “Send TCP message” action.

image.png

Select the destination you want to send the message to.