Boost Users :
Subject: [Boost-users] [ASIO] Resolver question
From: Davies, John (john.davies_at_[hidden])
Date: 2016-02-24 17:36:51
I have some pretty simple UPD code. (It has to be simple, I'm new at ASIO)
boost::asio::ip::udp::resolver::query query(boost::asio::ip::udp::v4(), addr, port);
m_receiverEndpoint = *m_resolver.resolve(query);
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?
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
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