Network Adapter Management
Overview
This section describes types and facilities for enumerating and getting information about installed network adapters. More…
import "io_base.jncx" import "io_NetworkAdapter.jnc" // enums bitflag enum io.NetworkAdapterFlags; enum io.NetworkAdapterType; // structs struct io.NetworkAdapterAddress; struct io.NetworkAdapterDesc; // global functions io.NetworkAdapterDesc const* io.enumerateNetworkAdapters( size_t* adapterCount = null, size_t* addressCount = null );
Detailed Documentation
This section describes types and facilities for enumerating and getting information about installed network adapters.
Global Functions
io.NetworkAdapterDesc const* io.enumerateNetworkAdapters( size_t* adapterCount = null, size_t* addressCount = null )
Enumerates all available network adapters on the system.
count
argument can be used to obtain the total number of devices in the
resulting list.
Returns a pointer to the very first io.NetworkAdapterDesc
in the resulting
list. You can walk through the list by inspecting
io.NetworkAdapterDesc.m_next
field:
io.NetworkAdapterDesc const* adapterDesc = io.enumerateNetworkAdapters(); for (; adapterDesc; adapterDesc = adapterDesc.m_next) { // add adapter to the combo box... }