Re: [Boost-users] Boost Asio Multicast

2023-12-17 Thread accelerator0099 via Boost-users
Could you bind() it to one card by its address before connecting? Or changing the default routes' metrics? The card with a lower metric will be selected first. Assuming that you have card 1 with address 192.168.1.2 Then you should endpoint ep{ ip::make_address("192.168.1.2"), 0 }; socket.bind(e

[Boost-users] Boost Asio Multicast

2023-12-17 Thread Georg Gast via Boost-users
Hi there, I wrote an application that is to a good part based on https://www.boost.org/doc/libs/1_83_0/doc/html/boost_asio/example/cpp11/multicast/receiver.cpp https://www.boost.org/doc/libs/1_83_0/doc/html/boost_asio/example/cpp11/multicast/sender.cpp It worked OK on my laptop as the packages a