C# Class System.Net.Topology.IPAddressExtensions

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

Public Methods

Method Description
GetBroadcastAddress ( this address, NetMask mask ) : IPAddress

Gets the broadcast address of an T:System.Net.IPAddress.

GetHostIdentifier ( this address, NetMask mask ) : IPAddress

Gets the host identifier (rest) an T:System.Net.IPAddress.

GetNetworkPrefix ( this address, NetMask mask ) : IPAddress

Gets the network prefix of an T:System.Net.IPAddress.

GetSiblings ( this address, NetMask mask ) : IEnumerable

Enumerates through the siblings of an T:System.Net.IPAddress in a network. Compliant to RFC 950 (2^n-2).

GetSiblings ( this address, NetMask mask, SiblingOptions options ) : IEnumerable

Enumerates through the siblings of an T:System.Net.IPAddress in a network.

Method Details

GetBroadcastAddress() public static method

Gets the broadcast address of an T:System.Net.IPAddress.
public static GetBroadcastAddress ( this address, NetMask mask ) : IPAddress
address this The address
mask NetMask The net mask of the network
return IPAddress

GetHostIdentifier() public static method

Gets the host identifier (rest) an T:System.Net.IPAddress.
public static GetHostIdentifier ( this address, NetMask mask ) : IPAddress
address this The address
mask NetMask The net mask of the network
return IPAddress

GetNetworkPrefix() public static method

Gets the network prefix of an T:System.Net.IPAddress.
public static GetNetworkPrefix ( this address, NetMask mask ) : IPAddress
address this The address
mask NetMask The net mask of the network
return IPAddress

GetSiblings() public static method

Enumerates through the siblings of an T:System.Net.IPAddress in a network. Compliant to RFC 950 (2^n-2).
public static GetSiblings ( this address, NetMask mask ) : IEnumerable
address this The address
mask NetMask The net mask of the network
return IEnumerable

GetSiblings() public static method

Enumerates through the siblings of an T:System.Net.IPAddress in a network.
public static GetSiblings ( this address, NetMask mask, SiblingOptions options ) : IEnumerable
address this The address
mask NetMask The net mask of the network
options SiblingOptions Options which addresses to include an which not
return IEnumerable