Skip to main content

UDP (Client)

The UDP (Client) output sends data from event records to a UDP server through a UDP socket. The output can format data as JSON, GeoJSON, Esri JSON, or delimited text. UDP datagrams (messages) are sent via unicast.

Example

The following is an example use case for the output:

A weather station sends real-time temperature and humidity data to a central server using UDP in JSON format.

Usage notes

Keep the following in mind when working with the output:

  • ArcGIS Velocity supports multiple output data formats when using the UDP (Client) output. The output formats include JSON, GeoJSON, Esri JSON, and delimited text.

  • Each UDP datagram contains one formatted event. JSON, GeoJSON, and Esri JSON do not add newline separators. Delimited text uses its configured message delimiter, which separates events and defaults to \n.

  • Use separate output connectors and destination ports when the receiving server needs to keep data from different feeds separate.

  • When output is formatted as delimited text, if you want a header row, you must select the Write header row option.

Parameters

The following are the parameters for the output:

Parameter

Description

Data type

Host

(Required)

The host address to which UDP datagrams are sent. The default is localhost, but any accessible hostname or IP address can be specified.

String

Port

(Required)

The destination port on which the receiving UDP server listens—for example, 5005.

Integer

Output data format

(Required)

The format of the output data. The available formats are Esri JSON, GeoJSON, Delimited text, and JSON.

Output data format type

Consideration and limitation

Consider the following when using the output:

UDP is a connectionless protocol. It does not guarantee delivery, ordering, or protection against duplicates. Successful validation does not confirm that a receiving server is available or received the data. Invalid configuration can cause an error, but an unavailable receiver does not necessarily produce an immediate error.