
Thanks a lot!
A related question: how do I in the simplest way send UDP data to 10 different ports.
In standard Python I would do sock = socket.socket(AF_INET, socket.SOCK_DGRAM) for port in portList: sock.sendto(data,(host,port)) sock.close()
What is the corresponding thing in Twisted? (I've only found listenUDP and connected UDP).
BR, Torbjörn
-----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Itamar Shtull-Trauring Sent: den 26 april 2005 18:52 To: Twisted general discussion Subject: Re: [Twisted-Python] Dynamic listening to UDP ports?
To stop listening on UDP port:
port = reactor.listenUDP(1243, p) port.stopListening()
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python