#include <pnetwork.h>
Public Member Functions | |
| NetDeviceInfo (const NetDeviceInfo &ndi) | |
| ~NetDeviceInfo () | |
| const InetAddress & | addr () const |
| Returns the IPv4 address of the device. | |
| const InetAddress & | netmask () const |
| Returns the IPv4 network mask. | |
| const InetAddress & | broadcast () const |
| Returns the IPv4 broadcast address. | |
| int | mtu () const |
| Returns the MTU of the device. | |
| NetDeviceInfo & | operator= (const NetDeviceInfo &ndi) |
Static Public Member Functions | |
| void | enumDevices (std::list< NetDeviceInfo > &devlist) |
| Enumerate all network devices. | |
This class hold various informations about a network- devices. Use the enumDevices() method to retrieve it from the system.
Definition at line 39 of file pnetwork.h.
|
|
|
|
|
|
|
|
Returns the IPv4 address of the device.
Definition at line 45 of file pnetwork.h. |
|
|
Returns the IPv4 broadcast address.
Definition at line 53 of file pnetwork.h. |
|
|
Enumerate all network devices.
|
|
|
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. |
|
|
Returns the IPv4 network mask.
Definition at line 49 of file pnetwork.h. |
|
|
|
1.3.3