fathom.socket.* namespace. Low level TCP/UDP sockets.
Works with IPv4 only for now.
Methods
(static) close(callback)
This function closes a socket.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | The callback Fathom invokes once the operation completes. On error, its only argument is a dictionary whose member "error" describes the problem that occurred. |
(static) getHostIP(callback)
Get the local address of this socket.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | The callback Fathom invokes once the operation completes. On error, its only argument is a dictionary whose member "error" describes the problem that occurred. |
(static) getPeerIP(callback)
Get the peer address of this socket.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | The callback Fathom invokes once the operation completes. On error, its only argument is a dictionary whose member "error" describes the problem that occurred. |