SimpleUDPDocumentation

Send and Receive UDP Datagrams

Receive datagrams

First check the receive channel’s name, bind address, and filter rules in Project Settings. Use the same channel name when binding and unbinding a handler. Once the handler is bound, send a test datagram from a permitted sender and check that the callback receives the expected bytes.

NodeDescription
BindUDPMessageHandlerBind a message receive callback
UnBindUDPMessageHandlerUnbind a specific handler
UnBindAllUDPMessageHandlerUnbind all handlers and close socket

Example: bind and unbind a handler

StartReceiveMessage

Unbind all receive handlers

StopReceiveMessage

Use this node to unbind every handler and close the socket when the channel no longer needs to receive datagrams.

Send datagrams

NodeDescription
SendUDPMessageSend a byte array through the channel (socket auto-created)

Example: send a string

SendMessage

Receive and send socket lifecycles

TypeCreated WhenDestroyed When
ReceiverFirst call to BindUDPMessageHandlerAll handlers removed → auto close socket
SenderFirst call to SendUDPMessage or configPlugin shutdown or channel deleted

Convert byte arrays

Use with SimpleByteConversion plugin to easily serialize/deserialize between data ↔ TArray<uint8>.