The Receive Text from a UDP Socket input connector can be used to adapt event data, formatted as delimited text, received through a UDP socket connection. The delimiter between attribute values is often a comma (,), so this type of data is sometimes referred to as comma-separated values. ArcGIS GeoEvent Server can use any ASCII printable character as a delimiter to separate data attribute values.

Usage notes
Keep the following in mind when using the Receive Text from a UDP Socket input connector:
- This input connector pairs the Text Inbound Adapter and the UDP Inbound Transport.
- Use this input connector to receive delimited text from any UDP client able to see your server machine and connect to the specified UDP socket port.
- By default, the connector opens a UDP socket on port 5000, however, any available server port can be used.
- Multiple Receive Text from a UDP Socket inputs can be configured, but each must specify a unique port.
- Multiple UDP client applications can connect and send data to a single configured input simultaneously.
- The Message Separator parameter is required. This single character specifies the end of an event record. A newline (\n) is a common end-of-record delimiter.
- An Attribute Separator parameter is required. This single character separates one attribute value from another. A comma (,) is a common attribute delimiter.
- UDP datagrams are typically compact messages, and client applications may not include a message separator between messages. The Characters to Append to Each Message parameter enables an implicit message separator to be appended to each message received.
- When the Append Source IP to Message parameter is set to Yes, the client application’s IP address and port will be appended to the datagram (message). If the character specified in the Source IP Prefix Character parameter is the same character as the character specified in the Attribute Separator parameter, the connector will interpret the appended IP and port as a string attribute value. Ensure the GeoEvent Definition includes an attribute field to accommodate the data being appended to each datagram.
- The first attribute of a received delimited data string may be used to specify the name of a GeoEvent Definition. This is useful when datagrams with different attribute data types or numbers of data attributes are expected to be received; the data itself can help specify which GeoEvent Definition the connector should use to interpret the received data values. Use the Incoming Data Contains GeoEvent Definition parameter to leverage this capability. Typically, all data records received on a given socket will have the same schema, so this parameter should be set to No (the default).
Parameters
The following are the parameters for the Receive Text from a UDP Socket input connector:
| Parameter | Description |
|---|---|
| Name | A descriptive name for the input connector used for reference in GeoEvent Manager. |
Default Spatial Reference | The well-known ID (WKID) of a spatial reference to be used when a geometry is constructed from attribute field values whose coordinates are not latitude and longitude values for an assumed WGS84 geographic coordinate system, or when geometry strings are received that do not include a spatial reference. A well-known text (WKT) value or the name of an attribute field containing the WKID or WKT can also be specified. |
Server Port | The server port that is used when establishing the UDP socket. UDP clients must be able to discover and connect to this port. The default port is 5000, but any available server port can be used. |
Append Source IP to Message | Specifies whether the transport will append the IP address of the machine that sent a UDP datagram to the datagram (message). If the specified Source IP Prefix Character parameter value is the same character as the Attribute Separator value, the adapter interprets the appended IP and port value as an additional string attribute value. Ensure that the GeoEvent Definition includes an attribute field to accommodate the data being appended to each datagram.
|
Source IP Prefix Character (Conditional) | A single literal character the transport uses to separate the IP address and port number that are appended to each UDP datagram. Typically, the same character used as the attribute separator for the message’s principal attribute values is used so the IP address and port are appended as a new attribute; however, the IP address and port values can be joined to a final string value using a different delimiter. This parameter is shown when Append Source IP to Message is set to Yes and is hidden when it's set to No. |
Character to Append to Each Message | A single literal character the transport appends to each UDP datagram before the message’s raw byte array is sent to the adapter. UDP datagrams are typically compact messages; client applications may not include a delimiter between messages. The adapter, however, requires a message separator to indicate the end of an event data record; if the broadcasting UDP client does not include a message delimiter, define one using the parameter. |
Buffer Size (Bytes) | The size of the buffer the transport allocates to hold raw bytes received from a broadcasting UDP client application. The default is 2048 bytes. The buffer must be large enough to accommodate IP headers, UDP headers, attribute data values, string representations of geometry being received as data, and any data appended to each received message. |
Message Separator | A single literal character that indicates the end of an event data record. Unicode values can be used to specify a character delimiter. Do not enclose the character in quotes. A newline (\n) is a common end-of-record delimiter. |
Attribute Separator | A single literal character used to separate one attribute value from another in a message. Unicode values can be used to specify a character delimiter. Do not enclose the character in quotes. A comma is a common attribute delimiter. |
Incoming Data Contains GeoEvent Definition | Specifies whether the first attribute value of each delimited line of text is used as the name of a GeoEvent Definition. For more information, refer to the usage notes above.
|
Create Unrecognized Event Definitions (Conditional) | Specifies whether a new GeoEvent Definition is created when one with the specified name does not exist. When a delimited text file includes event records from different types of sensors, the first attribute value is used to specify the type of event, and this attribute value is used as the GeoEvent Definition name.
This parameter is shown when Incoming Data Contains GeoEvent Definition is set to Yes and is hidden when it's set to No. |
Create GeoEvent Definition (Conditional) | Specifies whether a new or an existing GeoEvent Definition is used for the inbound event data. A GeoEvent Definition is required for GeoEvent Server to interpret the inbound event data attribute fields and data types.
This parameter is shown when Incoming Data Contains GeoEvent Definition is set to No and is hidden when it's set to Yes. |
GeoEvent Definition Name (New) (Conditional) | The name assigned to a new GeoEvent Definition. If a GeoEvent Definition with the specified name already exists, the existing GeoEvent Definition is used. The first data record received is used to determine the expected schema of subsequent data records, and a new GeoEvent Definition is created based on that first data record's schema. This parameter is shown when Create GeoEvent Definition is set to Yes and is hidden when it's set to No. |
GeoEvent Definition Name (Existing) (Conditional) | The name of an existing GeoEvent Definition to use when adapting received data to create event data for processing by a GeoEvent Service. This parameter is shown when Create GeoEvent Definition is set to No and is hidden when it's set to Yes. |
Construct Geometry from Fields | Specifies whether the input connector will construct a point geometry using coordinate values received as attributes. The default is No.
|
X Geometry Field (Conditional) | The attribute field in the inbound event data containing the x-coordinate part (for example, horizontal or longitude) of a point location. This parameter is shown when Construct Geometry from Fields is set to Yes and is hidden when it's set to No. |
Y Geometry Field (Conditional) | The attribute field in the inbound event data containing the y-coordinate part (for example, vertical or latitude) of a point location. This parameter is shown when Construct Geometry from Fields is set to Yes and is hidden when it's set to No. |
Z Geometry Field (Conditional) | The attribute field in the inbound event data containing the z-coordinate part (for example, depth or altitude) of a point location. If no value is provided, the z-value is omitted, and a 2D point geometry is constructed. This parameter is shown when Construct Geometry from Fields is set to Yes and is hidden when it's set to No. |
Expected Date Format | The pattern used to match expected string representations of date/time values and convert them to Java Date values. The pattern's format follows the Java SimpleDateFormat class convention. While the preferred pattern for date/time values in GeoEvent Server is the ISO 8601 standard, several string representations of date/time values commonly recognized as date values can be converted to Java Date values without specifying an Expected Date Format value. These include the following:
If the date/time values received use a convention other than one of those listed above, you must specify an expected date format pattern so GeoEvent Server can adapt the date/time values. |
Language for Number Formatting | The locale identifier (ID) used for locale-sensitive behavior when formatting numbers from data values. The default is the locale of the machine GeoEvent Server is installed on. For more information, refer to Java Supported Locales. |
Multicast Mode | Specifies whether the input connector joins a multicast group to receive messages routed by an internal network to a group of intended receivers. The default is No.
|
Multicast Group (Conditional) | The group address that the input connector will join when in multicast mode. The input connector receives packets sent to this group address. The IP address range 239.x.x.x is reserved by RFC 2365 for organization-specific administrative use within a single local area network. This parameter is shown when Multicast Mode is set to Yes and is hidden when it's set to No. |