[Twisted-Python] connection to many servers
dbcourriel-4all at yahoo.fr
dbcourriel-4all at yahoo.fr
Tue Sep 7 05:28:00 EDT 2010
Hi,
i need to connect (tcp) to many servers.
so i wrote
def connectAll(addresses):
logger.info("connect all")
servers = [svcConnect(address) for address in addresses]
defer.DeferredList(servers, consumeErrors=True).addCallback(handleAllResults, addresses)
reactor.run( )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100907/4b390d81/attachment.htm
More information about the Twisted-Python
mailing list