Represents one Ethernet network adapter on a system (the PC) More...
Public Member Functions | |
PvNetworkAdapter () | |
Constructor. | |
virtual | ~PvNetworkAdapter () |
Destructor. | |
PvString | GetMACAddress () const |
Get the NIC's MAC address. More... | |
PvString | GetDescription () const |
Returns the operating system provided description of the network adapter. More... | |
uint32_t | GetIPAddressCount () const |
Returns one of the IP addresses for the network adapter, index-based. More... | |
PvString | GetIPAddress (uint32_t aIndex) const |
Returns the IP address of the network adapter. More... | |
PvString | GetSubnetMask (uint32_t aIndex) const |
Returns the subnet mask of one of the IP addresses of the network adapter. More... | |
PvString | GetDefaultGateway () const |
The NIC's default gateway. More... | |
bool | IsPleoraDriverInstalled () const |
Returns true if the Pleora driver is installed on this network interface. More... | |
![]() | |
virtual | ~PvInterface () |
Destructor. | |
PvInterfaceType | GetType () const |
Get the interface type. More... | |
PvString | GetName () const |
Get the description of the NIC, as reported by the OS. More... | |
PvString | GetDisplayID () const |
Get a string that can be used in a user interface to identify the interface. More... | |
PvString | GetUniqueID () const |
Get a string uniquely identifying the interface. More... | |
PvString | GetCompareID () const |
Get a string that can be used to sort interfaces. More... | |
uint32_t | GetDeviceCount () const |
Get the number of found devices on this PvInterface. More... | |
const PvDeviceInfo * | GetDeviceInfo (uint32_t aIndex) const |
Get information identifying a device. More... | |
Additional Inherited Members | |
![]() | |
static bool | Compare (const PvInterface *a1, const PvInterface *a2) |
Static method used for sorting interfaces. More... | |
Represents one Ethernet network adapter on a system (the PC)
To use this class, see PvSystem.
PvString PvNetworkAdapter::GetDefaultGateway | ( | ) | const |
The NIC's default gateway.
PvString PvNetworkAdapter::GetDescription | ( | ) | const |
Returns the operating system provided description of the network adapter.
PvString PvNetworkAdapter::GetIPAddress | ( | uint32_t | aIndex | ) | const |
Returns the IP address of the network adapter.
IP addresses and subnet masks are enumerated together. The subnet mask of 0 matches the IP addresses of 0, etc.
[in] | aIndex | The IP configuration index. |
uint32_t PvNetworkAdapter::GetIPAddressCount | ( | ) | const |
Returns one of the IP addresses for the network adapter, index-based.
IP addresses and subnet masks are enumerated together. GetIPAddressCount is used to get the 0-based range that can be used with both GetIPAddress and GetSubnetMask. The subnet mask of 0 matches the IP addresses of 0, etc.
PvString PvNetworkAdapter::GetMACAddress | ( | ) | const |
Get the NIC's MAC address.
PvString PvNetworkAdapter::GetSubnetMask | ( | uint32_t | aIndex | ) | const |
Returns the subnet mask of one of the IP addresses of the network adapter.
IP addresses and subnet masks are enumerated together. The subnet mask of 0 matches the IP addresses of 0, etc.
[in] | aIndex | The IP configuration index. |
bool PvNetworkAdapter::IsPleoraDriverInstalled | ( | ) | const |
Returns true if the Pleora driver is installed on this network interface.
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com