Enumeration

NWInterface.InterfaceType

Types of network interfaces, based on their link layer media types.

Declaration

enum NWInterface.InterfaceType

Topics

Interface Types

case wifi

The network interface type used for communication over Wi-Fi networks.

case cellular

The network interface type used for communication over cellular networks.

case wiredEthernet

The network interface type used for communication over wired Ethernet networks.

case loopback

The network interface type used for communication over local loopback networks.

case other

The network interface type used for communication over virtual networks or networks of unknown types.

Instance Properties

See Also

Inspecting Interfaces

let type: NWInterface.InterfaceType

The type of the interface, such as Wi-Fi or loopback.

let name: String

The name of the interface.

let index: Int

The system interface index associated with the interface.

var debugDescription: String

The description of the network interface.