[Boost-bugs] [Boost C++ Libraries] #13462: set_option: The requested address is not valid in its context

Subject: [Boost-bugs] [Boost C++ Libraries] #13462: set_option: The requested address is not valid in its context
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-03-03 22:08:17


#13462: set_option: The requested address is not valid in its context
-----------------------------------------+----------------------------
 Reporter: nguyen.tnhoang@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: | Component: asio
  Version: Boost 1.66.0 | Severity: Showstopper
 Keywords: asio udp multicast receiver |
-----------------------------------------+----------------------------
 I follow this code to create a UDP multicast receiver:
 http://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/example/cpp11/multicast/receiver.cpp

 I modify the code with these for predefined values:

 class receiver:
     short multicast_port = 13;

 in main():

      //if (argc != 3) and the code for argv that follows are commented out
     receiver r(io_context, boost::asio::ip::make_address("127.0.0.1"),
 boost::asio::ip::make_address("127.0.0.1"));

 This error is thrown:

     set_option: The requested address is not valid in its context

 I have tried "0.0.0.0" and "127.0.0.1" and other values. Still get the
 same error. Could someone please help me figuring out what went wrong?

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13462>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-03-03 22:12:42 UTC