NetSamples.Common.Net
Class NetworkAddress

Field Summary
System.Net.IPAddress address
NetSamples.Common.Net.NetworkAddressEventHandler AddressChanged
System.Collections.Hashtable addresses
System.Net.IPAddress bcast
uint ERROR_INSUFFICIENT_BUFFER
uint ERROR_IO_PENDING
NetSamples.Common.Net.NetworkInterface iface
uint index
System.Net.IPAddress mask
System.Threading.Thread notifythread
uint size

Constructor Summary
NetworkAddress(NetSamples.Common.Net.iphlpapi.MIB_IPADDRROW info)
         Constructor

Property Summary
System.Net.IPAddress Address
         Address
System.Collections.ICollection Addresses
         Collection of all addresses
System.Net.IPAddress BroadcastAddress
         Broadcast address
uint Index
NetSamples.Common.Net.NetworkInterface Interface
         Retrieves the NetworkInterface for the address
uint ReassemblyBufferSize
         Reassembly buffer size
System.Net.IPAddress SubnetMask
         Subnet mask

Method Summary
void CancelNotifyAddressChanged(NetSamples.Common.Net.NetworkAddressEventHandler handler)
         Cancels a request to be advised of address changes.
void LoadAddressInfo()
         Loads the address information
void NotifyAddressChanged(NetSamples.Common.Net.NetworkAddressEventHandler handler)
         Registers a request to be notified of address changes
void NotifyThreadProc()
         Thread procedure to handle waiting for address changes

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


Field Detail

address

private System.Net.IPAddress address


AddressChanged

private NetSamples.Common.Net.NetworkAddressEventHandler AddressChanged


addresses

private System.Collections.Hashtable addresses


bcast

private System.Net.IPAddress bcast


ERROR_INSUFFICIENT_BUFFER

private uint ERROR_INSUFFICIENT_BUFFER


ERROR_IO_PENDING

private uint ERROR_IO_PENDING


iface

private NetSamples.Common.Net.NetworkInterface iface


index

private uint index


mask

private System.Net.IPAddress mask


notifythread

private System.Threading.Thread notifythread


size

private uint size

Constructor Detail

NetworkAddress

internal NetworkAddress(NetSamples.Common.Net.iphlpapi.MIB_IPADDRROW info)

Constructor

Property Detail

Address

public System.Net.IPAddress Address

Address


Addresses

public System.Collections.ICollection Addresses

Collection of all addresses


BroadcastAddress

public System.Net.IPAddress BroadcastAddress

Broadcast address


Index

public uint Index


Interface

public NetSamples.Common.Net.NetworkInterface Interface

Retrieves the NetworkInterface for the address


ReassemblyBufferSize

public uint ReassemblyBufferSize

Reassembly buffer size


SubnetMask

public System.Net.IPAddress SubnetMask

Subnet mask

Method Detail

CancelNotifyAddressChanged

public void CancelNotifyAddressChanged(NetSamples.Common.Net.NetworkAddressEventHandler handler)

Cancels a request to be advised of address changes.


LoadAddressInfo

private void LoadAddressInfo()

Loads the address information


NotifyAddressChanged

public void NotifyAddressChanged(NetSamples.Common.Net.NetworkAddressEventHandler handler)

Registers a request to be notified of address changes


NotifyThreadProc

protected void NotifyThreadProc()

Thread procedure to handle waiting for address changes