listenForConnections if true enables the listener, and any incoming connections are accepted port determines the port on which the listener will run
Closes all connections, including the listener, and destroys the Node
Closes all connections
Closes a connection using it's connection ID Returns true on success, false on failure
Returns true if a connection ID is assigned to an existing connection
generates keys for encrypting messages
Returns a list of all connection IDs that are currently assigned to connections, useful for running server
Waits for an NetEvent to occur, and returns it. A timeout can be provided, if null, max value is used
Returns Host name of a connection using connection ID local if true, makes it return local host name, else, remote host name is used If connection doesn't exist, null is retured
Returns IP Address of a connection using connection ID local if true, makes it return the local address, otherwise, remoteAddress is used If connection doesn't exist, null is retured
Creates a new connection to address using the port.
sends public key to a specific connection
sends public key to all connections
Sends a message to a Node using connection ID
Specifies if incoming connections will be accepted by listener. It's value does not have any affect if litenForConnections was specified as false in constructor
Specifies if incoming connections will be accepted by listener. It's value does not have any affect if litenForConnections was specified as false in constructor
use this to set the public and private keys for this Node, or generate random using Node.generateKeys