[Twisted-Python] Multicast Server and Client Question

Itamar Shtull-Trauring itamar at itamarst.org
Wed Jun 9 10:43:02 EDT 2004

On Tue, 2004-06-08 at 23:04, stephen at thorne.id.au wrote:

> did you try .write() on the return value of .listenMulticast? When I was doing
> multicast stuff I basically did this:
> reactor.listenUDP(0, Request()).write('broadcast\n', ('', 9120))

EEeeeeeeeeew. The fact that even works is not guaranteed.

What you do is, in the protocol, self.transport.write(yourdata,
('', 9120)), where the ip, port pair is the one you joined for

Itamar Shtull-Trauring    http://itamarst.org

More information about the Twisted-Python mailing list