Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkAdapterInfo ¶
type NetworkAdapterInfo struct { *net.Interface AdapterIndex int AdapterHandle A.Handle AdapterMedium uint32 }
func GetBestInterface ¶
func GetBestInterface(adapters []*NetworkAdapterInfo, ipStr string) (*NetworkAdapterInfo, error)
GetBestInterface determines the best network interface for a given IP address. It uses a list of network adapter information to find the matching adapter.
func GetNetworkAdapterInfo ¶
func GetNetworkAdapterInfo(api *A.NdisApi) ([]*NetworkAdapterInfo, *A.TcpAdapterList, error)
GetNetworkAdapterInfo retrieves the combined network adapter information.
Click to show internal directories.
Click to hide internal directories.