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.

Author Andy.Zeldis
Recipients Andy.Zeldis
Date 2012-12-02.09:07:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354439249.45.0.0324812571604.issue16594@psf.upfronthosting.co.za>
In-reply-to
Content
On BSD (including Mac OS X) SO_REUSEPORT should be specified along with SO_REUSEADDR to match behavior on Linux (and possible Windows). This is needed to have multiple listeners to a UDP broadcast.

I discovered this when using PyOSC. Attached is an example modified to subclass SocketServer with a workaround. It should be possible to start multiple instances of this program, all of which will receive messages to a broadcast address (eg 255.255.255.255:7110).

This test uses Python 2.7 on OS X (despite the "python3" shebang line from the example)
History
Date User Action Args
2012-12-02 09:07:29Andy.Zeldissetrecipients: + Andy.Zeldis
2012-12-02 09:07:29Andy.Zeldissetmessageid: <1354439249.45.0.0324812571604.issue16594@psf.upfronthosting.co.za>
2012-12-02 09:07:29Andy.Zeldislinkissue16594 messages
2012-12-02 09:07:29Andy.Zeldiscreate