IoT::NetworkEnvironment

struct NetworkInterface

File Information

Library: IoT/NetworkEnvironment
Package: NetworkEnvironment
Header: IoT/NetworkEnvironment/NetworkEnvironmentService.h

Variables

adapterName

std::string adapterName;

The interface adapter name.

On Windows platforms, this is the network adapter LUID. The adapter name is used by some Windows Net APIs like DHCP.

On other platforms this is the same as name().

addresses

std::vector < AddressTuple > addresses;

The IP addresses assigned to this interface.

displayName

std::string displayName;

The interface display name.

On Windows platforms, this is currently the network adapter name. This may change to the "friendly name" of the network connection in a future version, however.

On other platforms this is the same as name.

index

unsigned index;

The interface OS index.

isLoopback

bool isLoopback;

True if the interface is a loopback interface, otherwise false.

isPointToPoint

bool isPointToPoint;

True if the interface is a point-to-point interface, otherwise false.

isRunning

bool isRunning;

True if the interface is running, otherwise false.

isUp

bool isUp;

True if the interface is up, otherwise false.

macAddress

std::string macAddress;

The MAC (Media Access Control) address for the interface.

mtu

unsigned mtu;

The MTU for this interface.

name

std::string name;

The interface name.

supportsBroadcast

bool supportsBroadcast;

True if the interface supports broadcast, otherwise false.

supportsIP

bool supportsIP;

True if the interface supports IP (4 or 6), otherwise false.

supportsIPv4

bool supportsIPv4;

True if the interface supports IPv4, otherwise false.

supportsIPv6

bool supportsIPv6;

True if the interface supports IPv6, otherwise false.

supportsMulticast

bool supportsMulticast;

True if the interface supports multicast, otherwise false.

type

MIBInterfaceType type;

The MIB IfType of the interface.

Securely control IoT edge devices from anywhere   Connect a Device