[asio-users] How to tell which group a multicast packet was sent to
Brought to you by:
chris_kohlhoff
From: Szabolcs S. <cc...@ma...> - 2020-02-19 06:14:00
|
Hi, I'm trying to receive multicast traffic for multiple groups on the same interface. I'm using the multicast receiver example as a basis. I can subscribe to multiple groups, but when I receive a message in one of them, I need to know which group the packet was sent to originally. I thought about using the destination address of the packet, but that information seems unavailable in the async callback function. (The source address is there in sender_endpoint_, but I need the destination address.) Is there a way to extract this information for each packet? Thanks, -- Szabi |