NetSamples.Common.Net
Class NetworkInterface

Represents a Network Interface (IP Helper)

Field Summary
NetSamples.Common.Net.NetworkAdapter adapter
uint ERROR_INSUFFICIENT_BUFFER
NetSamples.Common.Net.iphlpapi.MIB_IFROW ifrow
uint index
System.Collections.Hashtable interfaces
string name

Constructor Summary
NetworkInterface(NetSamples.Common.Net.iphlpapi.IP_ADAPTER_INDEX_MAP info)
         Constructor

Property Summary
NetSamples.Common.Net.NetworkAdapter Adapter
         Adapter for this interface
uint AdminStatus
         Admin statis
string Description
         Description
uint Index
         Interface index
int InterfaceCount
         Count of interfaces
System.Collections.ICollection Interfaces
         Collection of Interfaces
uint Mtu
         MTU size
string Name
         Name
uint NonUnicastReceived
         Number of non-unicast packets received
uint NonUnicastSent
         Number of non-unicast packets sent
string PhysicalAddress
         Physical address
uint Received
         Number of packets received
uint ReceivedDiscarded
         Number of received packets that have been discarded
uint ReceivedError
         Number of received packets that were in error
uint Sent
         Number of packets sent
uint SentDiscarded
         Number of sent packets that were discarded
uint SentError
         Number of sent packets that were in error
uint Speed
         Interface speed
uint UnicastReceived
         Number of unicast packets received
uint UnicastSent
         Number of unicast packets sent

Method Summary
NetSamples.Common.Net.NetworkInterface Interface(uint index)
         Retrieves an interface by index number
void LoadInterfaceInfo()
         Loads the Interface data

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

adapter

private NetSamples.Common.Net.NetworkAdapter adapter


ERROR_INSUFFICIENT_BUFFER

private uint ERROR_INSUFFICIENT_BUFFER


ifrow

private NetSamples.Common.Net.iphlpapi.MIB_IFROW ifrow


index

private uint index


interfaces

private System.Collections.Hashtable interfaces


name

private string name

Constructor Detail

NetworkInterface

internal NetworkInterface(NetSamples.Common.Net.iphlpapi.IP_ADAPTER_INDEX_MAP info)

Constructor

Property Detail

Adapter

public NetSamples.Common.Net.NetworkAdapter Adapter

Adapter for this interface


AdminStatus

public uint AdminStatus

Admin statis


Description

public string Description

Description


Index

public uint Index

Interface index


InterfaceCount

public int InterfaceCount

Count of interfaces


Interfaces

public System.Collections.ICollection Interfaces

Collection of Interfaces


Mtu

public uint Mtu

MTU size


Name

public string Name

Name


NonUnicastReceived

public uint NonUnicastReceived

Number of non-unicast packets received


NonUnicastSent

public uint NonUnicastSent

Number of non-unicast packets sent


PhysicalAddress

public string PhysicalAddress

Physical address


Received

public uint Received

Number of packets received


ReceivedDiscarded

public uint ReceivedDiscarded

Number of received packets that have been discarded


ReceivedError

public uint ReceivedError

Number of received packets that were in error


Sent

public uint Sent

Number of packets sent


SentDiscarded

public uint SentDiscarded

Number of sent packets that were discarded


SentError

public uint SentError

Number of sent packets that were in error


Speed

public uint Speed

Interface speed


UnicastReceived

public uint UnicastReceived

Number of unicast packets received


UnicastSent

public uint UnicastSent

Number of unicast packets sent

Method Detail

Interface

public NetSamples.Common.Net.NetworkInterface Interface(uint index)

Retrieves an interface by index number


LoadInterfaceInfo

private void LoadInterfaceInfo()

Loads the Interface data