Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::NetDeviceInfo Class Reference
[Networking library]

Network device info. More...

#include <pnetwork.h>

List of all members.

Public Member Functions

 NetDeviceInfo (const NetDeviceInfo &ndi)
 ~NetDeviceInfo ()
const InetAddressaddr () const
 Returns the IPv4 address of the device.

const InetAddressnetmask () const
 Returns the IPv4 network mask.

const InetAddressbroadcast () const
 Returns the IPv4 broadcast address.

int mtu () const
 Returns the MTU of the device.

NetDeviceInfooperator= (const NetDeviceInfo &ndi)

Static Public Member Functions

void enumDevices (std::list< NetDeviceInfo > &devlist)
 Enumerate all network devices.


Detailed Description

Network device info.

This class hold various informations about a network- devices. Use the enumDevices() method to retrieve it from the system.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 39 of file pnetwork.h.


Constructor & Destructor Documentation

P::NetDeviceInfo::NetDeviceInfo const NetDeviceInfo ndi  ) 
 

P::NetDeviceInfo::~NetDeviceInfo  ) 
 


Member Function Documentation

const InetAddress& P::NetDeviceInfo::addr  )  const [inline]
 

Returns the IPv4 address of the device.

Definition at line 45 of file pnetwork.h.

const InetAddress& P::NetDeviceInfo::broadcast  )  const [inline]
 

Returns the IPv4 broadcast address.

Definition at line 53 of file pnetwork.h.

void P::NetDeviceInfo::enumDevices std::list< NetDeviceInfo > &  devlist  )  [static]
 

Enumerate all network devices.

int P::NetDeviceInfo::mtu  )  const [inline]
 

Returns the MTU of the device.

Returns the Maximum transfer unit (MTU) of the device. A packet sent over this device cannot exceed the MTU (including packet header and payload).

Definition at line 62 of file pnetwork.h.

const InetAddress& P::NetDeviceInfo::netmask  )  const [inline]
 

Returns the IPv4 network mask.

Definition at line 49 of file pnetwork.h.

NetDeviceInfo& P::NetDeviceInfo::operator= const NetDeviceInfo ndi  ) 
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:35 2004 for P::Classes by doxygen 1.3.3