Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] Resolver question
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2016-02-24 17:59:43


On 25/02/2016 11:36, Davies, John wrote:
> If my address is 192.168.1.112 everything works
>
> If my address is 192.168.001.112 it doesn’t work and throws an exception
> about not finding the host.
>
> It’s not a big deal, but it sure took me a long time to track down.
>
> Is there some sort of Boost magic I can do to convert the bad address
> into a good address?

Can you change whatever is formatting the address incorrectly in the
first place? I can't think of any system function that would generate
addresses in that format, so presumably that's coming from something
app-specific.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net