Send UDP Message

The Send UDP Message action sends a User Datagram Protocol (UDP) message to a destination hostname or IP address, and port.

Parameters

Parameter Description
Input type Specifies the data type, Binary or String of the message to send. The data is taken from the Data parameter and any data conversion is done into the message sent in the UDP message.

Input tab

Parameter Description
Host The hostname or IP address of the remote computer to send the UDP message to.
Port The UDP port on the remote computer to send the UDP message to. The valid values are 1 - 65545. A port value of 0 is not valid.
Data

The message to send to the remote computer. The logical data type is set based on the option selected in the Input Type parameter.

The data type conversions supported are:

  • INT1, INT2, INT4, INT8, UINT1, UINT2, UINT4, UINT8, STRING, FLOAT4, FLOAT8, TIMESTAMP to STRING
  • BINARY to BINARY.
Length An option length that can be used to send less than the full amount of the message in the Data parameter. The length of the data in the Data parameter is known for both Binary and String types. If this optional Length parameter is not specified, then the full message based on the known size is sent.
Source Port The UDP port to use as the source port when sending the UDP messages. If not specified, a random UDP source port is used.

Send UDP Message action considerations

  • The UDP datagram protocol specifies that the data is sent in a single network packet.
  • If two or more triggers are defined and started with a Send UDP Message action to the same Host (hostname or IP address) and Port, then the platform's UDP support will handle the sending of the data as two distinct UDP messages. A target Receive UDP Message event trigger (or external application) will receive the data as two distinct UDP messages (the Receive UDP Message trigger will receive the two messages in two distinct executions of the trigger).
  • A Port value of 0 is not in the valid port range.
Related topics

Receive UDP Message