[Twisted-Python] Twisted reactor
Matt Goodall
matt at pollenation.net
Mon Dec 15 17:37:43 EST 2003
Hegedus, Matthew S wrote:
>I want to have a piece of software that listens for UDP packets on multiple
>ports. It listens TCP for a connection that will tell it what UDP ports to
>listen to. The UDP ports change dynamically. I guess I can always do a
>reactor.listenUDP(port) whenever I need to listen on additional ports, but
>how do I get the reactor to stop listening on a particular port? Thanks,
>
listenUDP() returns an object which supports the IListeningPort
interface. Hang on to that object and call stopListening() on it when
you change ports.
Cheers, Matt
--
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenation.net
e: matt at pollenation.net
More information about the Twisted-Python
mailing list