HW-SD  1.0.0
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
hwsd::NetInfo Struct Reference

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

#include <netInfo.h>

+ Inheritance diagram for hwsd::NetInfo:
+ Collaboration diagram for hwsd::NetInfo:

Public Types

enum  Type {
  TYPE_UNKNOWN = LB_BIT_NONE, TYPE_ETHERNET = LB_BIT1, TYPE_INFINIBAND = LB_BIT2, TYPE_LOOPBACK = LB_BIT3,
  TYPE_TUNNEL_ETHERNET = LB_BIT4, TYPE_TUNNEL_6TO4 = LB_BIT5, TYPE_ALL = LB_BIT_ALL_32
}

Public Member Functions

 NetInfo ()
 Default constructor pointing to the default display.
bool operator== (const NetInfo &rhs) const
bool operator!= (const NetInfo &rhs) const
std::string getType () const
void setType (const std::string &strType)
- Public Member Functions inherited from hwsd::NodeInfo
 NodeInfo ()
 Default constructor describing a local session.
bool operator== (const NodeInfo &rhs) const
bool operator!= (const NodeInfo &rhs) const

Public Attributes

Type type
 The type of the network interface.
std::string name
 The name of the interface (e.g.
std::string hostname
 The hostname assigned to this interface.
std::string hwAddress
 The MAC address (':' as separator) of the interface.
std::string inetAddress
 The IPv4 address (':' as separator) of the interface.
std::string inet6Address
 The IPv6 address (':' as separator) of the interface.
unsigned int linkspeed
 The interface link speed in Megabits per second.
bool up
 Whether the interface is up or down.
char dummy [24]
 Buffer for binary-compatible additions.
- Public Attributes inherited from hwsd::NodeInfo
lunchbox::UUID id
 Random unique ID identifing the origin node.
std::string nodeName
 System hostname if remote, empty for local.
std::string session
 The session name: local, default or custom string.
char dummy [32]
 Buffer for binary-compatible additions.

Static Public Attributes

static const unsigned defaultValue = UINT_MAX
 A non-enumerated value.

Detailed Description

A structure containing network-specific information.

Definition at line 31 of file netInfo.h.

Member Enumeration Documentation

Enumerator:
TYPE_TUNNEL_ETHERNET 

gif interface on Darwin

TYPE_TUNNEL_6TO4 

stf interface on Darwin

Definition at line 33 of file netInfo.h.

Constructor & Destructor Documentation

hwsd::NetInfo::NetInfo ( )
inline

Default constructor pointing to the default display.

Version
1.0

Definition at line 48 of file netInfo.h.

Member Function Documentation

bool hwsd::NetInfo::operator!= ( const NetInfo rhs) const
inline
Returns
true if both infos are not identical.
Version
1.0

Definition at line 63 of file netInfo.h.

bool hwsd::NetInfo::operator== ( const NetInfo rhs) const
inline
Returns
true if both informations are identical.
Version
1.0

Definition at line 52 of file netInfo.h.

References hostname, hwAddress, inet6Address, inetAddress, linkspeed, name, type, and up.

Member Data Documentation

const unsigned hwsd::NetInfo::defaultValue = UINT_MAX
static

A non-enumerated value.

Version
1.0

Definition at line 45 of file netInfo.h.

std::string hwsd::NetInfo::hostname

The hostname assigned to this interface.

Version
1.0

Definition at line 109 of file netInfo.h.

Referenced by operator==().

std::string hwsd::NetInfo::hwAddress

The MAC address (':' as separator) of the interface.

Version
1.0

Definition at line 112 of file netInfo.h.

Referenced by operator==().

std::string hwsd::NetInfo::inet6Address

The IPv6 address (':' as separator) of the interface.

Version
1.0

Definition at line 118 of file netInfo.h.

Referenced by operator==().

std::string hwsd::NetInfo::inetAddress

The IPv4 address (':' as separator) of the interface.

Version
1.0

Definition at line 115 of file netInfo.h.

Referenced by operator==().

unsigned int hwsd::NetInfo::linkspeed

The interface link speed in Megabits per second.

Version
1.0

Definition at line 121 of file netInfo.h.

Referenced by operator==().

std::string hwsd::NetInfo::name

The name of the interface (e.g.

eth0, ib0).

Version
1.0

Definition at line 106 of file netInfo.h.

Referenced by operator==().

Type hwsd::NetInfo::type

The type of the network interface.

Version
1.0

Definition at line 103 of file netInfo.h.

Referenced by operator==().

bool hwsd::NetInfo::up

Whether the interface is up or down.

Version
1.0

Definition at line 124 of file netInfo.h.

Referenced by operator==().


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