Boost logo

Boost Users :

Subject: [Boost-users] udp::endpoint listen_endpoint invalid argument
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-04-11 05:32:06


Hi,

I built doc/html/boost_asio/example/timeouts/blocking_udp_client.cpp on
Debian Jessie, but when I run it, I got Invalid argument on the statement
of udp::endpoint listen_endpoint(
boost::asio::ip::address::from_string(argv[1]), std::atoi(argv[2]));

To simplify it, I changed to:
udp::endpoint listen_endpoint(
boost::asio::ip::address::from_string("localhost"), 15555);

Appreciate any clues what's wrong with that statement and why it caused
invalid argument?

Thank you.



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