open-dis-python icon indicating copy to clipboard operation
open-dis-python copied to clipboard

Allow for multiple receivers on same UDP address/port

Open coderextreme opened this issue 5 years ago • 2 comments

Please do something like:

udpSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

in examples/dis_receiver.py

to allow for multiple receiver's on same host/port.

I don't know if socket.SO_REUSEPORT is an option or not. You may choose to use that instead.

Enjoy getting multicasting working!

coderextreme avatar Jan 26 '21 01:01 coderextreme

Thanks for the suggestion. This is just an example. But if it's useful for you please go ahead and implement the change, confirm it works and submit a pull request for it. I'll merge it once that is done.

leif81 avatar Jan 26 '21 03:01 leif81

The open-dis7-java project supports multiple receivers, see usages of DisThreadedNetworkInterface in the MV3500 course examples.

brutzman avatar Jan 21 '22 21:01 brutzman

Closing. This was fixed in MR #38

leif81 avatar Jan 11 '23 00:01 leif81