#include <host.h>
Inheritance diagram for SST::Host:
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 Host * | host () |
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.
|
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. |
|
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. |