Specify which interface for multicast

Create issue
Issue #30 new
anjiro created an issue

Patch to {{{MulticastDatagramServerProtocol}}} included to allow the user to specify which interface to listen to multicast on.

Using this requires adding the interface argument to {{{listenUDP()}}} on the sending side: {{{ local_ip = '192.168.2.15' sender_port = reactor.listenUDP(0, sender_func, local_ip) }}}

And on the receiving side: {{{ local_ip = '192.168.2.14' server_port = reactor.listenMulticast(6000, async.MulticastDatagramServerProtocol(receiver_func, '224.0.0.1', interface=local_ip), listenMultiple=True) }}}

Comments (0)

  1. Log in to comment