C# Class NewTOAPIA.Net.Utility

Afficher le fichier Open project: Wiladams/NewTOAPIA

Méthodes publiques

Свойство Type Description
multicastIP System.Net.IPAddress

Méthodes publiques

Méthode 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

Méthode Description
GetFirstMulticastInterface ( ) : IPAddress

Method Details

GetLocalRoutingInterface() public static méthode

public static GetLocalRoutingInterface ( IPAddress ipAddress, int port ) : IPAddress
ipAddress System.Net.IPAddress
port int
Résultat System.Net.IPAddress

GetRandomMulticastAddress() public static méthode

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

IsMulticast() public static méthode

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

IsMulticast() public static méthode

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
Résultat bool

Property Details

multicastIP public_oe static_oe property

public static IPAddress,System.Net multicastIP
Résultat System.Net.IPAddress