SubnettingCalcs is a subnetting calculations class, wich can provide info about network hosts capacity, netmask length, netmask, network prefix, lowest (first) host IP, highest (last) host IP & broadcast address at string dotted address format, decimal format with 4 cell byte array and binary format with 32 cell byte array with 0 and 1 values.
More...
Public Member Functions |
| SubnettingCalcs (string dottedIp, string dottedNetmask) |
| Constructor with IP and Netmask as parameters
|
| SubnettingCalcs (string dottedIP, byte netmaskLength) |
| Constructor with IP and Netmask Length as parameters
|
Properties |
byte[] | BroadcastBin [get] |
| The Network Broadcast Address in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | HiHostIpBin [get] |
| The Highest (last) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | LowHostIpBin [get] |
| The Lowest (first) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | NetprefixBin [get] |
| The Network Prefix in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | NetmaskBin [get] |
| The Network Mask in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | IpBin [get] |
| The current IP Address in binary array format (a 32 cell byte-type array with 0 and 1 values)
|
byte[] | BroadcastDec [get] |
| The Network Broadcast Address in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
byte[] | HiHostIpDec [get] |
| The Highest (last) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
byte[] | LowHostIpDec [get] |
| The Lowest (first) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
byte[] | NetprefixDec [get] |
| The Network Prefix in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
byte[] | NetmaskDec [get] |
| The Network Mask in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
byte[] | IpDec [get] |
| The current IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
|
string | Broadcast [get] |
| The Network Broadcast Address in dotted string format "xxx.xxx.xxx.xxx"
|
string | HiHostIp [get] |
| The Highest (last) Host IP in dotted string format "xxx.xxx.xxx.xxx"
|
string | LowHostIp [get] |
| The Lowest (first) Host IP in dotted string format "xxx.xxx.xxx.xxx"
|
string | Netprefix [get] |
| The Network Prefix in dotted string format "xxx.xxx.xxx.xxx"
|
string | Netmask [get, set] |
| The Network Mask in dotted string format "xxx.xxx.xxx.xxx"
|
string | Ip [get, set] |
| The current IP in dotted string format "xxx.xxx.xxx.xxx"
|
int | NetCapacity [get] |
| The Network Capacity. How many hosts can be addressed in the network.
|
byte | NetmaskLength [get, set] |
| The Network Mask Length. A number from 8 to 30.
|
Detailed Description
SubnettingCalcs is a subnetting calculations class, wich can provide info about network hosts capacity, netmask length, netmask, network prefix, lowest (first) host IP, highest (last) host IP & broadcast address at string dotted address format, decimal format with 4 cell byte array and binary format with 32 cell byte array with 0 and 1 values.
Constructor & Destructor Documentation
Constructor with IP and Netmask as parameters
- Parameters:
-
dottedIp | IP in 4 segments dotted format (xxx.xxx.xxx.xxx) |
dottedNetmask | Netmask in 4 segments dotted format (xxx.xxx.xxx.xxx) |
Constructor with IP and Netmask Length as parameters
- Parameters:
-
dottedIP | IP in 4 segments dotted format (xxx.xxx.xxx.xxx) |
netmaskLength | Netmask Length |
Property Documentation
The Network Broadcast Address in dotted string format "xxx.xxx.xxx.xxx"
The Network Broadcast Address in binary array format (a 32 cell byte-type array with 0 and 1 values)
The Network Broadcast Address in decimal array format (a 4 cell byte-type array with 0 to 255 values)
The Highest (last) Host IP in dotted string format "xxx.xxx.xxx.xxx"
The Highest (last) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)
The Highest (last) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
The current IP in dotted string format "xxx.xxx.xxx.xxx"
The current IP Address in binary array format (a 32 cell byte-type array with 0 and 1 values)
The current IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
The Lowest (first) Host IP in dotted string format "xxx.xxx.xxx.xxx"
The Lowest (first) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)
The Lowest (first) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)
The Network Capacity. How many hosts can be addressed in the network.
The Network Mask in dotted string format "xxx.xxx.xxx.xxx"
The Network Mask in binary array format (a 32 cell byte-type array with 0 and 1 values)
The Network Mask in decimal array format (a 4 cell byte-type array with 0 to 255 values)
The Network Mask Length. A number from 8 to 30.
The Network Prefix in dotted string format "xxx.xxx.xxx.xxx"
The Network Prefix in binary array format (a 32 cell byte-type array with 0 and 1 values)
The Network Prefix in decimal array format (a 4 cell byte-type array with 0 to 255 values)