Internet Protocol network interface.
More...
#include <base/net/InetInterface.h>
Inherits Object.
|
enum | Flag {
UP = 1,
LOOPBACK = 2,
POINT_TO_POINT = 4,
BROADCAST = 8,
MULTICAST = 16,
DYNAMIC = 32
} |
|
Internet Protocol network interface.
This class represents an Internet Protocol network interface.
- Version
- 1.0
- Examples
- testsuite/server.cpp.
◆ InetInterface() [1/4]
InetInterface::InetInterface |
( |
| ) |
|
|
noexcept |
◆ InetInterface() [2/4]
InetInterface::InetInterface |
( |
const String & |
name | ) |
|
Initializes interface by name.
◆ InetInterface() [3/4]
InetInterface::InetInterface |
( |
const InetAddress & |
address | ) |
|
|
noexcept |
Initializes interface by address.
◆ InetInterface() [4/4]
◆ getAddress() [1/2]
◆ getAddress() [2/2]
static InetAddress InetInterface::getAddress |
( |
unsigned int |
index | ) |
|
|
static |
Returns the address of the specified interface.
◆ getBroadcast()
const InetAddress& InetInterface::getBroadcast |
( |
| ) |
const |
|
inlinenoexcept |
Returns the broadcast address. Only valid if BROADCAST is set.
◆ getDestination()
const InetAddress& InetInterface::getDestination |
( |
| ) |
const |
|
inlinenoexcept |
Returns the destination address. Only valid if POINT_TO_POINT is set.
◆ getEthernetAddress()
const EUI64& InetInterface::getEthernetAddress |
( |
| ) |
const |
|
inlinenoexcept |
Returns the ethernet address.
◆ getFlags()
unsigned int InetInterface::getFlags |
( |
| ) |
const |
|
inlinenoexcept |
◆ getIndex()
unsigned int InetInterface::getIndex |
( |
| ) |
const |
|
inlinenoexcept |
◆ getIndexByAddress()
static unsigned int InetInterface::getIndexByAddress |
( |
const InetAddress & |
address | ) |
|
|
static |
Returns the index of the interface associated with the specified address.
◆ getIndexByName()
static unsigned int InetInterface::getIndexByName |
( |
const String & |
name | ) |
|
|
static |
Returns the index of the specified interface.
◆ getInterfaceNames()
static ArrayMap<String, unsigned int> InetInterface::getInterfaceNames |
( |
| ) |
|
|
static |
Returns the names and indices of the available interfaces.
◆ getInterfaces()
◆ getMetric()
unsigned int InetInterface::getMetric |
( |
| ) |
const |
|
inlinenoexcept |
◆ getName() [1/2]
const String& InetInterface::getName |
( |
| ) |
const |
|
inlinenoexcept |
Returns the name of the network interface.
◆ getName() [2/2]
static String InetInterface::getName |
( |
unsigned int |
index | ) |
|
|
static |
◆ getNetmask()
Returns the network mask.