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 = '' sender_port = reactor.listenUDP(0, sender_func, local_ip) }}}

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

Comments (0)

  1. Log in to comment