C# Class System.Net.Topology.NetMaskExtensions

Provides extension methods for the T:System.Net.Topology.NetMask.
Mostra file Open project: nikeee/wake-on-lan

Public Methods

Method Description
GetSiblingCount ( this mask ) : int

Gets the number of siblings an T:System.Net.IPAddress can have in a given network. Compliant to RFC 950 (2^n-2).

GetSiblingCount ( this mask, SiblingOptions options ) : int

Gets the number of siblings an T:System.Net.IPAddress can have in a given network.

Method Details

GetSiblingCount() public static method

Gets the number of siblings an T:System.Net.IPAddress can have in a given network. Compliant to RFC 950 (2^n-2).
public static GetSiblingCount ( this mask ) : int
mask this The net mask of the network
return int

GetSiblingCount() public static method

Gets the number of siblings an T:System.Net.IPAddress can have in a given network.
public static GetSiblingCount ( this mask, SiblingOptions options ) : int
mask this The net mask of the network
options SiblingOptions Options which addresses to include an which not
return int