Module: fathom/socket

fathom.socket.* namespace. Low level TCP/UDP sockets. Works with IPv4 only for now.
Source:

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.
Source:

(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.
Source:

(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.
Source: