const class inet::IpInterface

sys::Obj
  inet::IpInterface

Source

Network interface which models name and IP addresses assigned

addrs

IpAddr[] addrs()

Source

Return list of IP addresses bound to this interface

broadcastAddrs

IpAddr[] broadcastAddrs()

Source

Return list of all broadcast IP addresses bound to this interface

dis

Str dis()

Source

Display name of the interface

equals

virtual override Bool equals(Obj? obj)

Source

Equality is based on interface name and addresses

findByAddr

const static IpInterface? findByAddr(IpAddr addr, Bool checked := true)

Source

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

const static IpInterface? findByName(Str name, Bool checked := true)

Source

Find the interface by its name. If the interface is not found then return null or raise UnresolvedErr based on checked flag.

hardwareAddr

Buf? hardwareAddr()

Source

Media Access Control (MAC) or physical address for this interface return null if address does not exist.

hash

virtual override Int hash()

Source

Hash code is based on interface name and addresses

isLoopback

Bool isLoopback()

Source

Return true if a loopback interface

isPointToPoint

Bool isPointToPoint()

Source

Return true if point to point interface (PPP through modem)

isUp

Bool isUp()

Source

Return true if interface is up and running

list

const static IpInterface[] list()

Source

List the interfaces on this machine

mtu

Int mtu()

Source

Maximum transmission unit of interface

name

Str name()

Source

Name of the interface

supportsMulticast

Bool supportsMulticast()

Source

Return true if interface supports multicast

toStr

virtual override Str toStr()

Source

Return string representation.