stec-platform
algo::VremMask Class Reference

The VremMask class Network Mask Utility for Automap. More...

#include <algo.h>

Collaboration diagram for algo::VremMask:

Public Member Functions

 VremMask (QString ip, QString mask)
 Constructor, enter with any IP within the segment used within the Netmask. More...
 
const QStringList SubNet (void)
 Returns all the ids allowed in that class C network, within the confines of that netmask.
 
const QString Network (void)
 returns the network address if ever needed
 
const QString BroadCast (void)
 return the boardcast addess which everyone listens
 

Static Public Member Functions

static const QStringList ListOfSubnetAddresses (QString ip, QString mask)
 returns a list of IP addresses based on a netmask
 

Detailed Description

The VremMask class Network Mask Utility for Automap.

The most sensible way to include participants within the autoconnect scheme is using Netmask of the included nodes.

Constructor & Destructor Documentation

◆ VremMask()

algo::VremMask::VremMask ( QString  ip,
QString  mask 
)
inline

Constructor, enter with any IP within the segment used within the Netmask.

index of class C part of the IP Address

node index part of the mask

needs to have one

String part of the Class

save this for later use

no math needed this is simple

0 thru 255 is 256 simple..

simple just figure out how many ip address there are in our subnet

RFC ... simple find our network address

well if we know our network address and we know the range, why do RFC math when plain old Barn Yard Math works for this

someone wants broadcast address maybe

someone wants broadcast address...

make up a list off all the ip addresses in our subnet


The documentation for this class was generated from the following file: