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(), addrport);

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?

 

Thanks,

John



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.