Method | Description | |
---|---|---|
AsInt ( [ thisAddr ) : int |
Represents an IPv4 address as a signed integer.
|
|
AsUInt ( [ thisAddr ) : uint |
Represents an IPv4 address as an unsigned integer.
|
|
IsIP ( [ ipString ) : bool |
Checks to see if the specified string is a valid IPv4 address.
|
|
IsLocal ( [ addr ) : bool |
Checks whether an IP address may belong to LAN or localhost (192.168.0.0/16, 10.0.0.0/24, or 127.0.0.0/24).
|
|
Match ( [ thisAddr, uint otherAddr, uint mask ) : bool | ||
NetMask ( byte range ) : uint |
Creates an IPv4 mask for the given CIDR range.
|
Method | Description | |
---|---|---|
RangeMax ( [ thisAddr, byte range ) : |
||
RangeMin ( [ thisAddr, byte range ) : |
public static IsIP ( [ ipString ) : bool | ||
ipString | [ | String representation of the IPv4 address. |
return | bool |
public static IsLocal ( [ addr ) : bool | ||
addr | [ | IPv4 address to check. |
return | bool |
public static Match ( [ thisAddr, uint otherAddr, uint mask ) : bool | ||
thisAddr | [ | |
otherAddr | uint | |
mask | uint | |
return | bool |