enum io.NetworkAdapterType

Overview

This enumeration specifies available types of the network adapter. More…

enum NetworkAdapterType {
    Unknown   = 0,
    Loopback,
    Ethernet,
    Wireless,
    Ppp,
    TokenRing,
    Slip,
    Tunnel,
    _Count,
};

Detailed Documentation

This enumeration specifies available types of the network adapter.

When enumerating available network adapter you first call io.enumerateNetworkAdapters, then iterate through the resulting list of io.NetworkAdapterDesc structures, each contains its type information io.NetworkAdapterDesc.m_type field.

Enum Values

Unknown

Denotes uninitialized value (or undetected type of the network adapter)

Loopback

Software loopback network interface.

Ethernet

Ethernet network interface.

Wireless

IEEE 802.11 wireless network interface.

Ppp

PPP (point-to-point) network interface.

TokenRing

Token ring network interface.

Slip

SLIP (serial-line-internet-protocol) network interface.

Tunnel

Tunnel type encapsulation network interface.

_Count

Not really a type of interface; rather, this is a convenience constant denoting the total count of adapter types. Should you need a table indexed by adapter type, you could write something like:

string_t getNetworkAdapterTypeString(io.NetworkAdapterType type) {
    static string_t stringTable[io.NetworkAdapterType._Count] = {
        "<unknown>",
        "loopback",
        // ...
    }

    return stringTable[type];
}