C# Class SobekCM.Tools.IpRangeUtilities.IpRangeSetV4

Set of IP address ranges used in the solution for quick IP range checks to support lookups within IP restrictions on the SobekCM engine
This supports very fast lookup to see if a provided IP address is within the set of IP ranges included within this set.
Datei anzeigen Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Public Methods

Method Description
AddIpRange ( SingleIpRangeV4 IpRange ) : void

Add a single IP restriction range to this set

AddIpRange ( string SingleIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( string StartIpAddress, string EndIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( ulong SingleIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( ulong StartIpAddress, ulong EndIpAddress ) : void

Add a single IP restriction range to this set

Contains ( ComparableIpAddress Address ) : bool

Check to see if a given IP address is within the IP ranges in this set

Contains ( string Address ) : bool

Check to see if a given IP address is within the IP ranges in this set

IpRangeSetV4 ( ) : System

Constructor for a new instance of the IpRangeSetV4 class

Ready ( ) : void

Readies this set for comparisons, by building some internal data structures

Method Details

AddIpRange() public method

Add a single IP restriction range to this set
public AddIpRange ( SingleIpRangeV4 IpRange ) : void
IpRange SingleIpRangeV4 Single IP range
return void

AddIpRange() public method

Add a single IP restriction range to this set
public AddIpRange ( string SingleIpAddress ) : void
SingleIpAddress string Single IP address/range (as a string)
return void

AddIpRange() public method

Add a single IP restriction range to this set
public AddIpRange ( string StartIpAddress, string EndIpAddress ) : void
StartIpAddress string First IP address in the range (as a string)
EndIpAddress string Last IP address in the range (as a string)
return void

AddIpRange() public method

Add a single IP restriction range to this set
public AddIpRange ( ulong SingleIpAddress ) : void
SingleIpAddress ulong Single IP address/range (as an unsigned long)
return void

AddIpRange() public method

Add a single IP restriction range to this set
public AddIpRange ( ulong StartIpAddress, ulong EndIpAddress ) : void
StartIpAddress ulong First IP address in the range (as an unsigned long)
EndIpAddress ulong Last IP address in the range (as an unsigned long)
return void

Contains() public method

Check to see if a given IP address is within the IP ranges in this set
public Contains ( ComparableIpAddress Address ) : bool
Address ComparableIpAddress IP address to check for inclusion ( as a object )
return bool

Contains() public method

Check to see if a given IP address is within the IP ranges in this set
public Contains ( string Address ) : bool
Address string IP address to check for inclusion ( as a string )
return bool

IpRangeSetV4() public method

Constructor for a new instance of the IpRangeSetV4 class
public IpRangeSetV4 ( ) : System
return System

Ready() public method

Readies this set for comparisons, by building some internal data structures
public Ready ( ) : void
return void