gramods
XML Documentation for gmNetwork

This page lists elements defined in the gmNetwork module and parameters (P), containers (C), their types and their corresponding C++ methods.

Parameters are set either as attributes or with the param tag, e.g. <param name="fullscreen" value="true">. Containers are typically automatically associated with the child type, through the Object::getDefaultKey() method, however it can be explicitly controlled through the KEY="container" attribute. Observe also that futher documentation for how an attribute should be used is sometimes available adjacent to the C++ methods.

XML attributes are parsed by stream operators. For more information about how this is done, refer to the documentation of the respective stream operator in the gramods namespace.

SyncNode

A handler of network communication with multiple peers. (more)

Attribute Type Method

Documentation

P exitWhenAPeerIsDisconnected bool setExitWhenAPeerIsDisconnected

Set whether or not the application should exit when connection to another node is lost.

P peer string addPeer

Adds a peer to the list of peers in the cluster.

P timeoutDelay float setTimeoutDelay Sets the number of seconds to wait before assuming that a silent peer has disconnected.