Main Page | Class Hierarchy | Class List | File List | Class Members

SST::Host Class Reference

This class encapsulates all per-host state used by the SST protocol. More...

#include <host.h>

Inheritance diagram for SST::Host:

SST::TimerHostState SST::SocketHostState SST::IdentHostState List of all members.

Public Member Functions

 Host ()
 Create a "bare-bones" host state object with no links or identity.

 Host (QSettings *settings, quint16 defaultUdpPort)
 Create an easy-to-use default Host object.

virtual Hosthost ()

Detailed Description

This class encapsulates all per-host state used by the SST protocol.

By centralizing this state here instead of using global/static variables, the host environment can be virtualized for simulation purposes and multiple SST instances can be run in one process.

It is the client's responsibility to ensure that a Host object is not destroyed while any SST objects still exist that refer to it.


Constructor & Destructor Documentation

Host::Host  ) 
 

Create a "bare-bones" host state object with no links or identity.

Client must establish a host identity via setHostIdent() and activate one or more network links before using SST.

Host::Host QSettings *  settings,
quint16  defaultUdpPort
 

Create an easy-to-use default Host object.

Uses the provided QSettings registry to locate, or create if necessary, a persistent host identity, as described for IdentHostState::initHostIdent(). Also creates and binds to at least one UDP link, using a UDP port number specified in the QSettings, or defaulting to defaultUdpPort if none. If the desired UDP port cannot be bound, just picks an arbitrary UDP port instead.


The documentation for this class was generated from the following files:
Generated on Wed Mar 28 11:48:05 2007 for SST by doxygen 1.3.4