# Functions
CheckRemoteTCP returns true if ip:port is listening, false otherwise.
CIDROverlap tells if the 2 CIDR passed as parameter intersect.
CIDRToIPv4Range converts CIDR to IPv4 range.
CIDRToUInt32Range converts CIDR to IPv4 range.
FirstIncludedSubnet takes a parent CIDR range and gives the first subnet within it with the given number of additional prefix bits 'maskAddition'.
IPv4StringToUInt32 converts IPv4 to uint32.
IPv4ToUInt32 converts net.IP to uint32.
IsCIDRRoutable tells if the network is routable.
IsConnectionRefused returns true if given err is a "connection refused" error.
IsConnectionReset returns true if given err is a "reset by peer" error.
NthIncludedSubnet takes a parent CIDR range and gives the 'nth' subnet within it with the given numver of additional prefix bits 'maskAddition'
For example, 192.168.0.0/16, extended by 8 bits gives as 4th subnet 192.168.4.0/24.
UInt32ToIPv4 converts uint32 to net.IP.
UInt32ToIPv4String converts uint32 to IP.
WhileCommunicationUnsuccessfulDelay1Second executes callback inside a retry loop with tolerance for communication errors (relative to net package), waiting 1 second between each try, with a limit of 'timeout'.
WhileUnsuccessfulButRetryable executes callback inside a retry loop with tolerance for communication errors (relative to net package), or some fail.Error that are considered retryable: asking "waiter" to wait between each try, with a duration limit of 'timeout'.
# Type aliases
CIDRString string representing a CIDR.