Returns the bound address.
Listen for datagram messages on a path.
Close the underlying socket and stop listening for data on it.
the SO_RCVBUF socket receive buffer size in bytes.
the SO_SNDBUF socket send buffer size in bytes.
Send messages to the destination path.
Sets the SO_RCVBUF socket option. Sets the maximum socket receive buffer in bytes.
Sets the SO_SNDBUF socket option. Sets the maximum socket send buffer in bytes.
Generated using TypeDoc
DgramSocket is used to create a SOCK_DGRAM unix domain socket. Currently DgramSocket doesn't work with
cluster
module.DgramSocket is also an
EventEmitter
and will emit events including:Event:
'data'
Buffer
string
Emitted when data is received.
path
indicates remote address information.Event:
'error'
Error
Emitted when an error occurs.
Event:
'close'
The 'close' event is emitted after a socket is closed with close().