Method | Description | |
---|---|---|
CreateEndPoint ( string hostNameOrAddress, int port, IPStack stack ) : |
Creates an IPEndPoint for the specified host name and port number.
|
|
CreateSocket ( string address, int port, ProtocolType protocol, IPStack stack, bool allowDualStackSocket = true ) : Socket |
Creates a Socket for the specified port and protocol.
|
|
GetDefaultIPStack ( ) : IPStack |
Gets the default IP stack for this system.
|
|
GetInterfaceIPStack ( string>.Dictionary |
Derives the desired IPStack from the "interface" setting in the connection string key/value pairs. The "interface" setting will be added to the connectionStringEntries if it doesn't exist, in this case return value will be IPStack.Default. |
|
IsDestinationReachable ( |
Determines if the specified UDP destination is listening for data.
|
|
IsIPv6IP ( string ipAddress ) : bool |
Determines if the specified ipAddress is an IPv6 IP.
|
|
IsLocalAddress ( string hostNameOrAddress ) : bool |
Determines if an IP address (or DNS name) is a local IP address.
|
|
IsMulticastIP ( |
Determines if the specified ipAddress is a multicast IP.
|
|
IsPortNumberValid ( string port ) : bool |
Determines whether the specified port is valid.
|
public static CreateEndPoint ( string hostNameOrAddress, int port, IPStack stack ) : |
||
hostNameOrAddress | string | The host name or IP address to resolve. |
port | int | The port number to be associated with the address. |
stack | IPStack | Desired IP stack to use. |
return |
public static CreateSocket ( string address, int port, ProtocolType protocol, IPStack stack, bool allowDualStackSocket = true ) : Socket | ||
address | string | The local address where the |
port | int | The port number at which the |
protocol | ProtocolType | One of the |
stack | IPStack | Desired IP stack to use. |
allowDualStackSocket | bool | Determines if dual-mode socket is allowed when endpoint address is IPv6. |
return | Socket |
public static GetDefaultIPStack ( ) : IPStack | ||
return | IPStack |
public static GetInterfaceIPStack ( string>.Dictionary |
||
connectionStringEntries | string>.Dictionary | Connection string key/value pairs. |
return | IPStack |
public static IsDestinationReachable ( |
||
targetIPEndPoint | The |
|
return | bool |
public static IsIPv6IP ( string ipAddress ) : bool | ||
ipAddress | string | IP address to check. |
return | bool |
public static IsLocalAddress ( string hostNameOrAddress ) : bool | ||
hostNameOrAddress | string | DNS name or IP address to test. |
return | bool |
public static IsMulticastIP ( |
||
ipAddress | IP address to check. | |
return | bool |
public static IsPortNumberValid ( string port ) : bool | ||
port | string | The port number to be validated. |
return | bool |