Re: [Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
Thanks a lot for your answer.   regards, --- En date de : Mar 7.9.10, exar...@twistedmatrix.com a écrit : De: exar...@twistedmatrix.com Objet: Re: [Twisted-Python] connection to many servers À: "Twisted general discussion" Date: Mardi 7 septembre 2010, 14h52 On 09:40 am, db

Re: [Twisted-Python] connection to many servers

2010-09-07 Thread exarkun
On 09:40 am, dbcourriel-4...@yahoo.fr wrote: Hi, i need to connect to many servers so i've found an example that shows how to connect to many servers see the source below. But i need to get the way to retrieve each server in order to see the satus of the connection, to send to it a message. Is

[Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
Hi, i need to connect to many servers so i've found an example that shows how to connect to many servers see the source below. But i need to get the way to retrieve each server in order to see the satus of the connection, to send to it a message. Is there an connection object with sendData acti

[Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
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( )