nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / IPv4

IPv4

Full name Microsoft.VisualBasic.Net.Tcp.IPv4 Assembly Microsoft.VisualBasic.Runtime Members 27

01 Syntax

Microsoft.VisualBasic.Net.Tcp.IPv4

02 Methods

NameOverloadsSummary
.ctor 1 Specify IP address and netmask like: Dim ip As New IPv4("10.1.0.25","255.255.255.16")
checkNetMask 1 See if there are zeroes inside netmask, like: 1111111101111 this Is illegal, throw exception if encountered.
NumericIpToSymbolic 2 Get the IP in symbolic form, i.e.
NumericNetmaskToSymbolic 1 Get the net mask in symbolic form, i.e.
GetCIDR 1 Get the IP and netmask in CIDR form, i.e.
GetAvailableIPs 1 Get an arry of all the IP addresses available for the IP and netmask/CIDR given at initialization @return
contains 2 Does this IP range contains the specific child?
NetMaskNumeric 1
IPNumeric 1
HostToNetworkOrder 1
GetHostAddressRange 1
GetNumberOfHosts 1
GetWildcardMask 1
GetBroadcastAddress 1
GetBinary 1
ToString 1

03 Properties

NameOverloadsSummary
IPAddress 1 Get the IP in symbolic form, i.e.
Netmask 1 Get the net mask in symbolic form, i.e.
CIDR 1 Get the IP and netmask in CIDR form, i.e.
hostAddressRange 1 Range of hosts @return
numberOfHosts 1 Returns number of hosts available in given range
WildcardMask 1 The XOR of the netmask
BroadcastAddress 1
netmaskInBinary 1

04 Fields

NameOverloadsSummary
InvalidNetmaskInitial 1 The first byte of netmask can not be less than 255

05 Members

method .ctor #
#ctor(String, String)

Specify IP address and netmask like: Dim ip As New IPv4("10.1.0.25","255.255.255.16")

Parameters
NameTypeDescription
symbolicIPString

-

netmaskString

-

method checkNetMask #
checkNetMask

See if there are zeroes inside netmask, like: 1111111101111 this Is illegal, throw exception if encountered. Netmask should always have only ones, then only zeroes, like: 11111111110000

method NumericIpToSymbolic overload 2 #
NumericIpToSymbolic(String, Boolean)
Parameters
NameTypeDescription
hexIpString

-

method NumericIpToSymbolic #
NumericIpToSymbolic(Int32)

Get the IP in symbolic form, i.e. xxx.xxx.xxx.xxx

Parameters
NameTypeDescription
ipInt32

-

method NumericNetmaskToSymbolic #
NumericNetmaskToSymbolic(Int32)

Get the net mask in symbolic form, i.e. xxx.xxx.xxx.xxx

Parameters
NameTypeDescription
netMaskNumericInt32

-

method GetCIDR #
GetCIDR(Int32, Int32)

Get the IP and netmask in CIDR form, i.e. xxx.xxx.xxx.xxx/xx

Parameters
NameTypeDescription
baseIPnumericInt32

-

netmaskNumericInt32

-

method GetAvailableIPs #
GetAvailableIPs(Nullable(Of Int32))

Get an arry of all the IP addresses available for the IP and netmask/CIDR given at initialization

@return

method contains overload 2 #
contains(String)

Checks if the given IP address contains in subnet

Parameters
NameTypeDescription
IPaddressString

@return

method contains #
contains(IPv4)

Does this IP range contains the specific child?

Parameters
NameTypeDescription
childIPv4

-

property IPAddress #
IPAddress

Get the IP in symbolic form, i.e. xxx.xxx.xxx.xxx

@return

property Netmask #
Netmask

Get the net mask in symbolic form, i.e. xxx.xxx.xxx.xxx

@return

property CIDR #
CIDR

Get the IP and netmask in CIDR form, i.e. xxx.xxx.xxx.xxx/xx

@return

property hostAddressRange #
hostAddressRange

Range of hosts

@return

property numberOfHosts #
numberOfHosts

Returns number of hosts available in given range

Returns

number of hosts

property WildcardMask #
WildcardMask

The XOR of the netmask

Returns

wildcard mask in text form, i.e. 0.0.15.255

field InvalidNetmaskInitial #
InvalidNetmaskInitial

The first byte of netmask can not be less than 255

property BroadcastAddress #
BroadcastAddress
property netmaskInBinary #
netmaskInBinary
method NetMaskNumeric #
NetMaskNumeric(String, Int32)
method IPNumeric #
IPNumeric(String, Int32)
method HostToNetworkOrder #
HostToNetworkOrder(String)
method GetHostAddressRange #
GetHostAddressRange(Int32, Int32)
method GetNumberOfHosts #
GetNumberOfHosts(Int32)
method GetWildcardMask #
GetWildcardMask(Int32)
method GetBroadcastAddress #
GetBroadcastAddress(Int32, Int32)
method GetBinary #
GetBinary(Int32)
method ToString #
ToString()