>-----Original Message----- >From: twisted-python-boun...@twistedmatrix.com [mailto:twisted-python- >boun...@twistedmatrix.com] On Behalf Of Antonio Beamud Montero >Sent: Wednesday, July 08, 2009 4:42 AM >To: Twisted general discussion >Subject: Re: [Twisted-Python] Connecting to multiple servers
<snip> >Ok, but when I use reactor.connectTCP no deferred is returned.. How I >can stop the reactor when all connections has finished? > >Thanks. ...it would be helpful if you provided an actual example (your example did not use a "reactor.connectTCP"); but in general terms, if you're connecting to multiple servers and want to wait till all connections are finished, you'll need to track the connections, and call reactor.stop() once the last connection is closed. ...so, using the example at: http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeTw istedtalktomultipleclientsconnecttomultipleservers - just call reactor.stop() in connectionLost method after all connections have been lost Regards, Gerrat _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python