UDPTransport

Implements a UDP transport adapter

Constructor

new UDPTransport(socketOptsopt)

Constructs a datagram socket interface

Parameters:
NameTypeAttributesDescription
socketOptsobject<optional>

Passed to dgram.createSocket(options)

Methods

listen(portopt, addressopt, callbackopt)

Binds the socket to the [port] [, address] [, callback]

Parameters:
NameTypeAttributesDefaultDescription
portnumber<optional>
0

Port to bind to

addressstring<optional>
0.0.0.0

Address to bind to

callbackfunction<optional>

called after bind complete