
6 Jan
2006
6 Jan
'06
3:28 p.m.
Chris Cleeland wrote:
On Thu, 5 Jan 2006, Pedro Lamarão wrote:
Yuval Ronen wrote:
[SNIP]
And one last suggestion: A construtor taking 4 unsigned chars, allowing this: asio::ipv4::address my_address(192, 168, 0, 1);
I suppose you meant four unsigned shorts?
An IPv4 address is comprised of four octets, and an unsigned char sufficiently represents an octet. A short would be overkill, no?
I see, you meant an implicit conversion to char? I still fail to see a use case for this. Help me here. :) -- Pedro Lamarão Desenvolvimento Intersix Technologies S.A. SP: (55 11 3803-9300) RJ: (55 21 3852-3240) www.intersix.com.br Your Security is our Business