Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Multicast SSM Joins
#1
Good morning, folks.

I'm looking to use Python to do some work with IP Multicast under version 3.7.

However, the wrinkle in the system is that the particular stream I need to join is a source-specific stream, with the socket option only existing for IGMPv2 with IP_ADD_MEMBERSHIP. In my online searches, the only other references I have been able to find are in C, which reference IP_ADD_SOURCE_MEMBERSHIP.

socketIn.setsockopt(socket.IPPROTO_IP, socket.SO_REUSEADDR, 1)
socketIn.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
                    (socket.inet_aton(groupAddr)+socket.inet_aton(myAddr)))
I'd rather not spoof out my own IGMPv3 packets, or make an SSM map on my network, but that looks like it may be necessary for me to join the stream I need.

Is it possible that a future version of Python will support this and its associated socket options?

Thanks in advance!
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)