Classes

The following classes are available globally.

  • This class represents a network interface in your system. For example, en0 with a certain IP address. It is a wrapper around the getifaddrs system call.

    Typical use of this class is to first call Interface.allInterfaces() and then use the properties of the interface(s) that you need.

    See

    /usr/include/ifaddrs.h
    See more

    Declaration

    Swift

    open class Interface : CustomStringConvertible, CustomDebugStringConvertible