SubnettingCalcs.dll  version 1.0
(c) 2012 - Petros Kyladitis
Multipetros.SubnettingCalcs Class Reference

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

SubnettingCalcs ( string  dottedIp,
string  dottedNetmask 
)
inline

Constructor with IP and Netmask as parameters

Parameters:
dottedIpIP in 4 segments dotted format (xxx.xxx.xxx.xxx)
dottedNetmaskNetmask in 4 segments dotted format (xxx.xxx.xxx.xxx)
SubnettingCalcs ( string  dottedIP,
byte  netmaskLength 
)
inline

Constructor with IP and Netmask Length as parameters

Parameters:
dottedIPIP in 4 segments dotted format (xxx.xxx.xxx.xxx)
netmaskLengthNetmask Length

Property Documentation

string Broadcast
get

The Network Broadcast Address in dotted string format "xxx.xxx.xxx.xxx"

byte [] BroadcastBin
get

The Network Broadcast 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)

string HiHostIp
get

The Highest (last) Host IP in dotted string format "xxx.xxx.xxx.xxx"

byte [] HiHostIpBin
get

The Highest (last) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)

byte [] HiHostIpDec
get

The Highest (last) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)

string Ip
getset

The current IP in dotted string format "xxx.xxx.xxx.xxx"

byte [] IpBin
get

The current IP Address in binary array format (a 32 cell byte-type array with 0 and 1 values)

byte [] IpDec
get

The current IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)

string LowHostIp
get

The Lowest (first) Host IP in dotted string format "xxx.xxx.xxx.xxx"

byte [] LowHostIpBin
get

The Lowest (first) Host IP in binary array format (a 32 cell byte-type array with 0 and 1 values)

byte [] LowHostIpDec
get

The Lowest (first) Host IP in decimal array format (a 4 cell byte-type array with 0 to 255 values)

int NetCapacity
get

The Network Capacity. How many hosts can be addressed in the network.

string Netmask
getset

The Network Mask in dotted string format "xxx.xxx.xxx.xxx"

byte [] NetmaskBin
get

The Network Mask in binary array format (a 32 cell byte-type array with 0 and 1 values)

byte [] NetmaskDec
get

The Network Mask in decimal array format (a 4 cell byte-type array with 0 to 255 values)

byte NetmaskLength
getset

The Network Mask Length. A number from 8 to 30.

string Netprefix
get

The Network Prefix in dotted string format "xxx.xxx.xxx.xxx"

byte [] NetprefixBin
get

The Network Prefix in binary array format (a 32 cell byte-type array with 0 and 1 values)

byte [] NetprefixDec
get

The Network Prefix in decimal array format (a 4 cell byte-type array with 0 to 255 values)