anyKode Marilou
|
Connection from the application to the simulation server (MODA server).
class Connection;
ModaCpp.h
Connection is used to connect the application to the MODA server. The communication is usually using TCP and UDP ports 13000: check that your FireWall do not filter these ports.
A MODA based program (the application) can open several connections on distributed MODA servers over the network. A consequence is that the same program can control robots that do not evolve in the same world.
Opening several connections to connect to a single world does not have immediate interest, but it is possible. It is preferable to use only one connection for controlling one world.
A connection opens actually 3 TCP channels: the communication is multiplexed and multi-threaded. Several threads can communicate with the server by locking/unlocking TCP channels.
The Connection constructor allows to set the number of available TCP channels.
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|