Constructor
new UDPTransport(socketOptsopt)
Constructs a datagram socket interface
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
socketOpts | object | <optional> | Passed to dgram.createSocket(options) |
- Source
Methods
listen(portopt, addressopt, callbackopt)
Binds the socket to the [port] [, address] [, callback]
Parameters:
Name | Type | Attributes | 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