Boost logo

Boost :

From: Chris Cleeland (cleeland_at_[hidden])
Date: 2006-01-05 17:28:13


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?

-- 
  Chris Cleeland, cleeland_c @ ociweb.com, http://www.milodesigns.com/~chris
     Principal Software Engineer, Object Computing, Inc., +1 314 579 0066
      Support Me Supporting Cancer Survivors in Ride for the Roses 2005
    >>>>>>>>>    Donate at http://www.milodesigns.com/donate    <<<<<<<<<

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk