C# Class NewTOAPIA.Net.Utility

ファイルを表示 Open project: Wiladams/NewTOAPIA

Public Properties

Property Type Description
multicastIP System.Net.IPAddress

Public Methods

Method Description
GetLocalRoutingInterface ( IPAddress ipAddress, int port ) : IPAddress
GetRandomMulticastAddress ( ) : IPAddress

Create a random class 'D' multicast IP address.

IsMulticast ( IPAddress ipAddress ) : bool

Checks if the IP is a multicast IP

Works for both IPv4 and IPv6

IsMulticast ( IPEndPoint ipEndPoint ) : bool

Checks if the IP is a multicast IP

Works for both IPv4 and IPv6. Note that this overload is slightly less efficient than the alternative, as only the IPAddress is needed to determine if an IP is multicast.

Private Methods

Method Description
GetFirstMulticastInterface ( ) : IPAddress

Method Details

GetLocalRoutingInterface() public static method

public static GetLocalRoutingInterface ( IPAddress ipAddress, int port ) : IPAddress
ipAddress System.Net.IPAddress
port int
return System.Net.IPAddress

GetRandomMulticastAddress() public static method

Create a random class 'D' multicast IP address.
public static GetRandomMulticastAddress ( ) : IPAddress
return System.Net.IPAddress

IsMulticast() public static method

Checks if the IP is a multicast IP
Works for both IPv4 and IPv6
public static IsMulticast ( IPAddress ipAddress ) : bool
ipAddress System.Net.IPAddress
return bool

IsMulticast() public static method

Checks if the IP is a multicast IP
Works for both IPv4 and IPv6. Note that this overload is slightly less efficient than the alternative, as only the IPAddress is needed to determine if an IP is multicast.
public static IsMulticast ( IPEndPoint ipEndPoint ) : bool
ipEndPoint System.Net.IPEndPoint
return bool

Property Details

multicastIP public_oe static_oe property

public static IPAddress,System.Net multicastIP
return System.Net.IPAddress