//Sets if IPv4 or 6 is focused void myIPAddress::setV6Priority(bool p) { if(p==v6_prioriity) return; v6_prioriity = p; _address = resetAddress(); }
/// Reset the value to 'undefined' (ie. 'not set'). inline void reset() { #ifdef GC_COMP switch(value_type) { case Type_undefined: break; case Type_number : resetNumber (); break; case Type_tuple : resetTuple (); break; case Type_address : resetAddress(); break; } #endif }
//Constructor myIPAddress::myIPAddress() { v6_prioriity=false; _address = resetAddress(); }
//Returns the address const IPAddress& myIPAddress::address() { if((float)(clock()-last)/CLOCKS_PER_SEC>2) _address = resetAddress(); return _address; }