Skip to content

Type Alias: NetworkInterfaceSelector ​

NetworkInterfaceSelector = string | { mac: string; } | { index: number; }

A network interface, as an implementation of IInterfaceListening takes it: its name ('eth1'; on Windows the name of the network connection), its hardware address ({mac: '52:54:00:12:34:56'}) or its index ({index: 3}).

Union Members ​

string


Type Literal ​

{ mac: string; }

mac ​

mac: string

The hardware address of the interface.


Type Literal ​

{ index: number; }

index ​

index: number

The index of the interface.

Released under the MIT License.