Function

nw_interface_get_index(_:)

Accesses the system interface index associated with the interface.

Declaration

func nw_interface_get_index(_ interface: nw_interface_t) -> UInt32

See Also

Inspecting Interfaces

func nw_interface_get_type(nw_interface_t) -> nw_interface_type_t

Accesses the type of the interface, such as Wi-Fi or Loopback.