Function indexToName

Converts the index of a network interface to its name.

String indexToName (
  uint index
) nothrow @nogc @trusted;

If an interface with the index cannot be found or another error occurres, returns an empty String.

Parameters

NameDescription
index Interface index.

Returns

Returns interface name or an empty String.