[AGENT++] Vb::get_value(...) and IP-address

Jochen Katz katz at agentpp.com
Fri Aug 27 21:56:02 CEST 2004


Hi,

> I agree - while any "good" agent should only set an IP address to
> integer 255 - 0 , if you have a "valid" flag in the class, the stored
> value should be range-checked.

when setting Addresses the flag is set, but...

>> If I do ip[0]=300 the flag should be false.

this can't be done easy as ip[0] returns an unsigned char, so setting it 
to 300 will set it to 44.

I will make the operator[] change with the next release.

Regards,
   Jochen




More information about the AGENTPP mailing list