,
I am a little confused by something with errors I’m receiving. In “IPv4Address.h” there are no intellisense errors, but when I attempt to build, it states that SubnetMask input used in operator functions is undefined. So, is “FIPv4SubnetMask” type not defined in “IPv4Address.h” file?
There are no #includes in file, so how would “IPv4Address.h” file recognize type? There are quite a few errors stating that it is assumed to be an int, but that it doesn’t support default int.
I also noticed that in “IPv4Subnet.h” it has errors in functions ‘ContainsAddress’ and ‘GetBroadcastAddress’ because it says “no operator found which takes a left-hand operand of type ‘FIPv4Address’ (or there is no acceptable conversion)”.
Anyways, if you have any ideas of what could be causing problem, please let me know. I am going to keep trying to get this to work. Thanks !
Also,
Inside class where I’m using networking code, I use #includes as follows:
//////////////////
#include “SocketSubsystem.h”
#include “IPv4Address.h”
#include “IPAddress.h”
//////////////////
Everything compiles and runs fine. But, if I use:
//////////////////
#include “Networking.h”
#include “IPAddress.h”
//////////////////
It fails. Shouldn’t headers being included be set up exactly as previous #includes? Why does this matter? Networking.h includes “IPv4Address.h” and “SocketSubsystem.h” files as well.