C# Class Brunet.Applications.IPAddresses

Inheritance: IEnumerable
Mostrar archivo Open project: johnynek/brunet Class Usage Examples

Public Properties

Property Type Description
AllInterfaces IList

Protected Properties

Property Type Description
_ints System.Collections.ArrayList

Public Methods

Method Description
GetAddresses ( ) : IList

This is the system depedent part of the code. It should call look up address information and place it into an IList.

GetEnumerator ( ) : IEnumerator

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses

GetIPAddresses ( ) : IPAddresses

Automatically chooses which version of IPAddresses to instantiate. This version looks up all the interfaces for the host

GetIPAddresses ( string interfaces ) : IPAddresses

Automatically chooses which version of IPAddresses to instantiate. This version of the constructor allows you to choose which interfaces to look up

IPAddresses ( ) : System

Used to look up all interfaces

IPAddresses ( string interfaces ) : System

Used to look up specific list of interfaces. This should not be called directly use GetIPAddresses(string[] interfaces)

Print ( ) : void

Prints the IPAddresses IList to the console.

Protected Methods

Method Description
AddIfMatch ( Regex re, string line, Hashtable ht, string key ) : bool

Called by GetAddresses to add the value to the correct place in the hashtable.

Method Details

AddIfMatch() protected method

Called by GetAddresses to add the value to the correct place in the hashtable.
protected AddIfMatch ( Regex re, string line, Hashtable ht, string key ) : bool
re System.Text.RegularExpressions.Regex The regular expression to match.
line string The line to check.
ht System.Collections.Hashtable The hashtable to store the data if their is a match.
key string Position in the key in the hashtable to store the result
return bool

GetAddresses() public abstract method

This is the system depedent part of the code. It should call look up address information and place it into an IList.
public abstract GetAddresses ( ) : IList
return IList

GetEnumerator() public method

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses
public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetIPAddresses() public static method

Automatically chooses which version of IPAddresses to instantiate. This version looks up all the interfaces for the host
public static GetIPAddresses ( ) : IPAddresses
return IPAddresses

GetIPAddresses() public static method

Automatically chooses which version of IPAddresses to instantiate. This version of the constructor allows you to choose which interfaces to look up
public static GetIPAddresses ( string interfaces ) : IPAddresses
interfaces string An array of interfaces to look up,
return IPAddresses

IPAddresses() public method

Used to look up all interfaces
public IPAddresses ( ) : System
return System

IPAddresses() public method

Used to look up specific list of interfaces. This should not be called directly use GetIPAddresses(string[] interfaces)
public IPAddresses ( string interfaces ) : System
interfaces string A list of interfaces to look up
return System

Print() public method

Prints the IPAddresses IList to the console.
public Print ( ) : void
return void

Property Details

AllInterfaces public_oe property

Contains interfaces information
public IList AllInterfaces
return IList

_ints protected_oe property

A list of the interfaces to look up when GetAddresses is called
protected ArrayList,System.Collections _ints
return System.Collections.ArrayList