Boost C++ Libraries: Ticket #3247: Multicast join group does not honor interface specification https://svn.boost.org/trac10/ticket/3247 <p> I'm working with the Multicast receiver example at: </p> <p> <a href="http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/example/multicast/receiver.cpp">http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/example/multicast/receiver.cpp</a> </p> <p> Notice that you specify the listen_address as you create the endpoint that is bound to the socket. Later when you call socket::set_option with the multicast_address, I would expect the listen_address to be honored. The current implementation uses INET_ANY for the interface in the multicast subscription. This means the multicast messages may arrive on one interface while you are listening for them on another one. I can't think of any case in which you would want to specify an IP for the receive, but not for the join_group and it certainly shouldn't be the default behavior when you use the example code as a guide. </p> <p> Workaround: There is a different constructor for the join_group object that does produce the desired behavior, but it is not obvious that you should need it. Also it does not accept boost::asio::ip::addresses as arguments (which would make sense) but requires that you "convert" them to ip4 (or ip6) addresses. Seems awkward. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3247 Trac 1.4.3 anonymous Fri, 22 Mar 2013 10:15:55 GMT <link>https://svn.boost.org/trac10/ticket/3247#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3247#comment:1</guid> <description> <p> join_group(multicast_address, listening_address) only works with ip4... not ip6, and 4 years later, it's still not documented </p> </description> <category>Ticket</category> </item> </channel> </rss>