- Index
- »
- inet
- »
- IpInterface
type
IpInterface
src
const class IpInterface : Obj
Network interface which models name and IP addresses assigned
methods
addrs |
Return list of IP addresses bound to this interface |
---|---|
broadcastAddrs |
Return list of all broadcast IP addresses bound to this interface |
dis |
Display name of the interface |
equals |
Equality is based on interface name and addresses |
findByAddr |
Find the interface bound to the given IP address. |
findByName |
Find the interface by its name. |
hardwareAddr |
Media Access Control (MAC) or physical address for this interface return null if address does not exist. |
hash |
Hash code is based on interface name and addresses |
isLoopback |
Return true if a loopback interface |
isPointToPoint |
Return true if point to point interface (PPP through modem) |
isUp |
Return true if interface is up and running |
list |
List the interfaces on this machine |
mtu |
Maximum transmission unit of interface |
name |
Name of the interface |
prefixSize |
Returns the network prefix length in bits for given address. |
supportsMulticast |
Return true if interface supports multicast |
toStr |
Return string representation. |
Slot Details
addrs
broadcastAddrs
dis
equals
findByAddr
src
static IpInterface? findByAddr(IpAddr addr, Bool checked := true)
Find the interface bound to the given IP address. If multiple interfaces are bound to the address it is undefined which one is returned. If no interfaces are bound then return null or raise UnresolvedErr based on checked flag.
findByName
src
static IpInterface? findByName(Str name, Bool checked := true)
Find the interface by its name. If the interface is not found then return null or raise UnresolvedErr based on checked flag.
hardwareAddr
hash
isLoopback
isPointToPoint
isUp
list
src
static IpInterface[] list()
List the interfaces on this machine