hwsd  1.3.1
Local and remote ZeroConf service discovery for hardware resources
hwsd::NodeInfo Struct Reference

A structure containing node-specific information. More...

#include <nodeInfo.h>

+ Inheritance diagram for hwsd::NodeInfo:
+ Collaboration diagram for hwsd::NodeInfo:

Public Member Functions

 NodeInfo ()
 Default constructor describing a local session. More...
 
bool operator== (const NodeInfo &rhs) const
 
bool operator!= (const NodeInfo &rhs) const
 
bool isLocal () const
 

Static Public Member Functions

static bool isLocal (const std::string &name)
 
static std::string getLocalSession ()
 

Public Attributes

servus::uint128_t id
 Random unique ID identifing the origin node. More...
 
std::string nodeName
 System hostname if remote, empty for local. More...
 
std::string session
 The session name: local, default or custom string. More...
 

Detailed Description

A structure containing node-specific information.

Definition at line 31 of file nodeInfo.h.

Constructor & Destructor Documentation

hwsd::NodeInfo::NodeInfo ( )

Default constructor describing a local session.

Version
1.0

Member Function Documentation

static std::string hwsd::NodeInfo::getLocalSession ( )
inlinestatic
Returns
the session name for local resources.
Version
1.1.1

Definition at line 49 of file nodeInfo.h.

bool hwsd::NodeInfo::isLocal ( ) const
Returns
true if this resource was discovered locally.
Version
1.1.1
static bool hwsd::NodeInfo::isLocal ( const std::string &  name)
static
Returns
true if this resource was discovered locally.
Version
1.1.1
bool hwsd::NodeInfo::operator!= ( const NodeInfo rhs) const
Returns
true if both infos are not identical.
Version
1.0
bool hwsd::NodeInfo::operator== ( const NodeInfo rhs) const
Returns
true if both informations are identical.
Version
1.0

Member Data Documentation

servus::uint128_t hwsd::NodeInfo::id

Random unique ID identifing the origin node.

Version
1.0

Definition at line 52 of file nodeInfo.h.

std::string hwsd::NodeInfo::nodeName

System hostname if remote, empty for local.

Version
1.0

Definition at line 55 of file nodeInfo.h.

std::string hwsd::NodeInfo::session

The session name: local, default or custom string.

Version
1.0

Definition at line 58 of file nodeInfo.h.


The documentation for this struct was generated from the following file: