steereo:classes:steereosingleconnection

SteereoSingleConnection

Description

A SteereoSingleConnection stores the characteristic information to describe a connection, but at least an ip and port. The semantics of these can of course vary with the type of the connection. For example with MPI you wouldn't use the ip parameter and the port would be some string, which has been published by the simulatin. It also provides a function to close the connection. For a new communicator, usually you will want to derive your own SteereoSingleConnection with the information for your connection type.

Functions

  •  void setIP (std::string myIP) 
     void setPort (std::string myPort) 
    std::string getIP ()
     std::string getPort () 

    The functions to set/get the IP/Port of your connection.

  •  void closeConnection () 

    This method should close the connection described in the instance. It is abstract in SteereoSingleConnection and has to be implemented in your derived SteereoSingleConnections.

steereo/classes/steereosingleconnection.txt · Last modified: 2010/03/22 15:25 (external edit)