Concurrent multicast udp socket

  • Thread starter emmanuel.richiardone
  • Start date
E

emmanuel.richiardone

Dear all

I have a problem with multicast sockets of the same port but belonging to different groups.

For example, I have two udp sockets, listening on the same local address and same port; for each one I set the sockopt to listen on a specific multicast group (I can also see the igmp packets going out of the interface).

But when data is sent on the network to one multicast address, I receive the same data to both the socket; I understand why, because I set the SO_REUSEPORT option.

I'm looking for a way to identify to which multicast group the data was sent after have been received on each socket.

I'm working on debian, python version 2.7 or 3.3.1.
Here is a sample of code:
http://pastebin.com/BF1gkvgg

Thanks for helps..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top