GNU CommonC++
|
Network device information class. More...
#include <network.h>
Public Member Functions | |
NetworkDeviceInfo (const NetworkDeviceInfo &ndi) | |
~NetworkDeviceInfo () | |
const String & | name () const |
Returns the Name of the network device. More... | |
const InetHostAddress & | address () const |
Returns the Address of the network device. More... | |
const BroadcastAddress & | broadcast () const |
Returns the Broadcast address of the network device. More... | |
const InetMaskAddress & | netmask () 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... | |
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()
|
protected |
ost::NetworkDeviceInfo::NetworkDeviceInfo | ( | const NetworkDeviceInfo & | ndi | ) |
ost::NetworkDeviceInfo::~NetworkDeviceInfo | ( | ) |
|
inline |
Returns the Address of the network device.
|
inline |
Returns the Broadcast address of the network device.
|
inline |
Returns the MTU.
|
inline |
Returns the Name of the network device.
|
inline |
Returns the Netmask of the network device.
|
friend |
Enumerate all available network devices.