NetworkInterfaceInfo

interface NetworkInterfaceInfo : ProxyObject

Operating System: Network Interface Info

Represents information about a network interface; typically returned by os.networkInterfaces(). When OS info is host-restricted, stubbed values are returned.

Types

Link copied to clipboard
object Companion

Factory to create new NetworkInterfaceInfo records.

Properties

Link copied to clipboard
abstract val address: String

The assigned IPv4 or IPv6 address.

Link copied to clipboard
abstract val cidr: String

The assigned IPv4 or IPv6 address with the routing prefix in CIDR notation. If the netmask is invalid, this property is set to null.

Link copied to clipboard
abstract val family: String

Either IPv4 or IPv6.

Link copied to clipboard
abstract val internal: Boolean

true if the network interface is a loopback or similar interface that is not remotely accessible; otherwise false.

Link copied to clipboard
abstract val mac: String

The MAC address of the network interface

Link copied to clipboard
abstract val netmask: String

The IPv4 or IPv6 network mask.

Link copied to clipboard
abstract val scopeid: Int?

The numeric IPv6 scope ID (only specified when the family is IPv6).

Functions

Link copied to clipboard
open override fun getMember(key: String): Any?
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
open override fun hasMember(key: String?): Boolean
Link copied to clipboard
open override fun putMember(key: String?, value: Value?)
Link copied to clipboard
open override fun removeMember(key: String?): Boolean