GNU CommonC++
Public Member Functions | Protected Member Functions | Friends | List of all members
ost::NetworkDeviceInfo Class Reference

Network device information class. More...

#include <network.h>

Public Member Functions

 NetworkDeviceInfo (const NetworkDeviceInfo &ndi)
 
 ~NetworkDeviceInfo ()
 
const Stringname () const
 Returns the Name of the network device. More...
 
const InetHostAddressaddress () const
 Returns the Address of the network device. More...
 
const BroadcastAddressbroadcast () const
 Returns the Broadcast address of the network device. More...
 
const InetMaskAddressnetmask () const
 Returns the Netmask of the network device. More...
 
const int mtu () const
 Returns the MTU. More...
 

Protected Member Functions

 NetworkDeviceInfo (const String &name, const InetHostAddress &addr, const BroadcastAddress &broadcast, const InetMaskAddress &netmask, int mtu)
 

Friends

__EXPORT bool enumNetworkDevices (std::vector< NetworkDeviceInfo > &devs)
 Enumerate all available network devices. More...
 

Detailed Description

Network device information class.

This class is used to hold various informations about a TCP/IP network device. Which can be obtained by a call to enumNetworkDevices()

Author
Christian Prochnow cproc.nosp@m.h@se.nosp@m.culog.nosp@m.ix.d.nosp@m.e

Constructor & Destructor Documentation

◆ NetworkDeviceInfo() [1/2]

ost::NetworkDeviceInfo::NetworkDeviceInfo ( const String name,
const InetHostAddress addr,
const BroadcastAddress broadcast,
const InetMaskAddress netmask,
int  mtu 
)
protected

◆ NetworkDeviceInfo() [2/2]

ost::NetworkDeviceInfo::NetworkDeviceInfo ( const NetworkDeviceInfo ndi)

◆ ~NetworkDeviceInfo()

ost::NetworkDeviceInfo::~NetworkDeviceInfo ( )

Member Function Documentation

◆ address()

const InetHostAddress& ost::NetworkDeviceInfo::address ( ) const
inline

Returns the Address of the network device.

◆ broadcast()

const BroadcastAddress& ost::NetworkDeviceInfo::broadcast ( ) const
inline

Returns the Broadcast address of the network device.

◆ mtu()

const int ost::NetworkDeviceInfo::mtu ( ) const
inline

Returns the MTU.

References __EXPORT.

◆ name()

const String& ost::NetworkDeviceInfo::name ( ) const
inline

Returns the Name of the network device.

◆ netmask()

const InetMaskAddress& ost::NetworkDeviceInfo::netmask ( ) const
inline

Returns the Netmask of the network device.

Friends And Related Function Documentation

◆ enumNetworkDevices

__EXPORT bool enumNetworkDevices ( std::vector< NetworkDeviceInfo > &  devs)
friend

Enumerate all available network devices.


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