Versions Compared

Key

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

The UDPClient transport handler allows the delivery of results over UDP/IP to an arbitrary host. This transport handler can only be used in one direction, to publish data over UDP.

Options

  • host: The host/IP of the target

  • port: The port of the target system

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

Example

PQL

Code Block
themeEclipse
languagejavascript
titleUDPClient Transport Handler
linenumberstrue
output = SENDER({sink='Sink',
wrapper='GenericPush',
transport='UDPClient',
protocol='CSV',
dataHandler='Tuple',
options=[['host', 'example.com'],['port', '8080'],['write', '10240']]
}, input)

CQL

Code Block
themeEclipse
languagesql
titleUDPClient Transport Handler
linenumberstrue
CREATE SINK sink (id Double, data STRING)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'UDPClient'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'host' 'example.com', 'port' '8080', 'read' '10240', 'write' '10240')