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
clustermodule.DgramSocket is also an
EventEmitterand will emit events including:Event:
'data'BufferstringEmitted when data is received.
pathindicates remote address information.Event:
'error'ErrorEmitted when an error occurs.
Event:
'close'The 'close' event is emitted after a socket is closed with close().