15.4. Connecting To the Simulation

Until connected to the simulation, the object model does not and cannot work properly. The connection serves for two main purposes. It ensures registration to the simulation and restoration of the previous state. Once connected the node is ready to participate in the simulation and service requests submitted by other collaborating nodes.

This is what happens when a node connects to the simulation:

Call System::connect() to connect to the simulation. The method takes a reference to an input stream (login file) holding the credentials the node will use to authentize itself (node id and its RSA keys). The standard configuration format is used to store login files (see Section 27.11, “Node Database”):

[ ]
node_id : string = "[ Server 1 ]"
rsa_private_key : string = "..."
rsa_public_key : string = "..."

[Note]Note

In the Demo client login files are encrypted using client supplied passwords. The encryption is implemented on the "application level".