enumerateDevices

    A utility function that enumerates the available network devices on this machine.

    Utilities.swift:172
    static func enumerateDevices() throws -> [NIONetworkDevice]

    Returns

    An array of network devices available on this machine.

    Throws

    If an error is encountered while enumerating interfaces.

    This function returns values that are true for a brief snapshot in time. These results can change, and the returned values will not change to reflect them. This function must be called again to get new results.

    Other members in extension

    Type members

    Show obsolete interfaces (1)

    Hide obsolete interfaces