Class: UDPTransport

UDPTransport

Implements a UDP transport adapter

new UDPTransport( [socketOpts])

Constructs a datagram socket interface
Parameters:
Name Type Argument Description
socketOpts object <optional>
Passed to dgram.createSocket(options)
Source:

Methods


listen( [port] [, address] [, callback])

Binds the socket to the [port] [, address] [, callback]
Parameters:
Name Type Argument Default Description
port number <optional>
0 Port to bind to
address string <optional>
0.0.0.0 Address to bind to
callback function <optional>
called after bind complete
Source: