Example #1
0
	//Sets if IPv4 or 6 is focused
	void myIPAddress::setV6Priority(bool p)
	{
		if(p==v6_prioriity)
            return;
        v6_prioriity = p;
        _address = resetAddress();
	}
Example #2
0
    /// 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
    }
Example #3
0
	//Constructor
	myIPAddress::myIPAddress()
	{
		v6_prioriity=false;
		_address = resetAddress();
	}
Example #4
0
	//Returns the address
	const IPAddress& myIPAddress::address()
	{
		if((float)(clock()-last)/CLOCKS_PER_SEC>2)
			_address = resetAddress();
		return _address;
	}