Node

A node connected to the hub where players can be transferred to.

Constructors

this
this(NodeServer server, uint hubId, string name, bool main, uint[][ubyte] acceptedGames)
Undocumented in source.

Members

Functions

accepts
bool accepts(Player player)

Indicates whether the node can accept the given player. If a player is transferred to a node that cannot accept it it is kicked with the "End of Stream" message by the hub.

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMessage
void sendMessage(ubyte[] payload)
void sendMessage(string message)

Sends a message to the node.

Properties

online
bool online [@property getter]

Indicates whether or not the node is still connected to the hub.

Variables

acceptedGames
uint[][ubyte] acceptedGames;

Indicates which games and which protocols the node does accept.

hubId
uint hubId;

Id of the node, given by the hub.

main
bool main;

Indicates whether the can receive player when they first connect or only when they are transferred.

name
string name;

Name of the node. It can only be one node with the same name online at the same time.

server
NodeServer server;
Undocumented in source.

Meta