DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Network::Interface Class Reference

Detailed Description

Network interface information.

Public Types

enum  Features { FeatureMulticast, FeatureBroadcast }
 

Public Member Functions

 Interface (void)
 
const std::string & name (void) const
 
bool hasFeature (Features feature)
 
const Addressaddress (void) const
 
const Addressbroadcast (void) const
 

Static Public Member Functions

static std::vector< Interfaceget (void)
 

Member Enumeration Documentation

Enumerator
FeatureMulticast 
FeatureBroadcast 

Constructor & Destructor Documentation

DUNE::Network::Interface::Interface ( void  )

Constructor.

Member Function Documentation

const Address& DUNE::Network::Interface::address ( void  ) const
inline

Retrieve interface's address.

Returns
interface's address.
const Address& DUNE::Network::Interface::broadcast ( void  ) const
inline

Retrieve interface's broadcast address.

Returns
interface's broadcast address.
std::vector< Interface > DUNE::Network::Interface::get ( void  )
static

Retrieve list with all active network interfaces.

Returns
list with all currently active network interfaces.

References DUNE::Network::Address::Address(), FeatureBroadcast, and FeatureMulticast.

bool DUNE::Network::Interface::hasFeature ( Features  feature)

Test for a given feature.

Parameters
featurefeature to test.
Returns
true if the interface supports the given feature, false otherwise.
const std::string& DUNE::Network::Interface::name ( void  ) const
inline

Retrieve interface's name.

Returns
interface's name.
Collaboration diagram for DUNE::Network::Interface:
Collaboration graph