|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Provides information about the environment's networking capabilities and settings. Uses Microsoft's NetSamples assembly
Field Summary | |
---|---|
System.Collections.ArrayList | gateways |
System.Collections.ArrayList | localAddresses |
Constructor Summary | |
---|---|
NetworkInfo() Initializes a new instance of the NetworkInfo class. |
Method Summary | |
---|---|
void | GetDetails() |
string |
LocalAddress() Gets the first local address for this machine (or loopback if nothing found) |
System.Net.IPEndPoint[] |
LocalEndPoints(int port) Returns an array of IPEndPoints for each local address on machine |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private System.Collections.ArrayList gateways
private System.Collections.ArrayList localAddresses
Constructor Detail |
---|
public NetworkInfo()
Initializes a new instance of the NetworkInfo class.
Method Detail |
---|
private void GetDetails()
public string LocalAddress()
Gets the first local address for this machine (or loopback if nothing found)
Returns:
public System.Net.IPEndPoint[] LocalEndPoints(int port)
Returns an array of IPEndPoints for each local address on machine
Parameters:
port
- Port we want
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |