Creating and Configuring UDP Socket with GeoEvent Processor

3404
3
10-18-2013 12:36 AM
praveennarayandas
New Contributor
i want ta give real time data through UDP Socket.

kindly let me know how to create and configure UDP Socket Input Connector With Geoevent Proceesor

thanks in advance.

praveen
0 Kudos
3 Replies
RyanElliott
New Contributor III
Praveen,

In your GeoEvent Processor's Manager, click "Inputs", "Add Input", and select "Receive Text from a UDP Socket".  This connector uses a very simple network transport library that binds to the port you specify and each UDP packet received is parsed by the Text adapter.  The text adapter's default settings parse the data as events separated with new-line characters so make sure you send a newline character after each event.  The values should be separated by commas.  You can change these values if they don't suit your needs.

If you need to parse the data with a different parser (like JSON), you will need to create a different connector in Manager (under "Site" -> "GeoEvent Processor" -> "Connectors")

Good luck!
0 Kudos
LydiaThacker
New Contributor II
Does the UDP socket have to be on the same machine as the arcgis server and gep?
If it is on a different machine on the same network how do you direct gep input connector to that server?
0 Kudos
RyanElliott
New Contributor III
You can send the UDP messages from another machine.  The UDP connector in the GeoEvent Processor will bind to a port an receive any UDP messages sent to the GEP machine at that port.  So if you are sending UDP messages from machine A to the GeoEvent Processor on machine B, then the software on machine A must address the message with Machine B's hostname or IP address, plus the port number.

Here is a code sample of how you might send the UDP packet in Python.
http://stackoverflow.com/questions/18743962/python-send-udp-packet
0 Kudos