This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing support for Source Specific Multicast
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ciresnave
Priority: normal Keywords:

Created on 2021-09-21 00:26 by ciresnave, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg402283 - (view) Author: CireSnave (ciresnave) Date: 2021-09-21 00:26
It appears that Python's socket module is missing support for the IGMPv3 socket options needed to support Source Specific Multicast.  Many developers appear to be adding the necessary constants through something like:

if not hasattr(socket, "IP_UNBLOCK_SOURCE"):
    setattr(socket, "IP_UNBLOCK_SOURCE", 37)
if not hasattr(socket, "IP_BLOCK_SOURCE"):
    setattr(socket, "IP_BLOCK_SOURCE", 38)
if not hasattr(socket, "IP_ADD_SOURCE_MEMBERSHIP"):
    setattr(socket, "IP_ADD_SOURCE_MEMBERSHIP", 39)
if not hasattr(socket, "IP_DROP_SOURCE_MEMBERSHIP"):
    setattr(socket, "IP_DROP_SOURCE_MEMBERSHIP", 40)


...but it would be nice if these were added to the official module as they are supported under current versions of Windows, Linux, and BSD at the least.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89415
2021-09-24 23:41:45terry.reedysetversions: - Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10
2021-09-21 00:26:04ciresnavecreate