Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The UDPServer transport handler allows the propagation of results over UDP/IP as a server. This transport handler can only be used in one direction, other UDP clients can send data to this server to publish data.

Options

  • port: The port to listen for data

  • read: The size of the read buffer (optional)

Example

PQL

Code Block
themeEclipse
languagejavascript
titleUDPServer Transport Handler
linenumberstrue
input = ACCESS({source='Source',
wrapper='GenericPush',
transport='UDPServer',
protocol='CSV',
dataHandler='Tuple',
options=[['port', '8080'],['read', '10240']],
schema=[
['id', 'Double'],
['data', 'String']]
})

CQL

Code Block
themeEclipse
languagesql
titleUDPServer Transport Handler
linenumberstrue
CREATE STREAM source (id Double, data STRING)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'UDPServer'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'port' '8080', 'read' '10240', 'write' '10240')