[Twisted-Python] Client to deal with multiple servers (Multiple Reactors?)
Christopher Armstrong
radix at twistedmatrix.com
Fri Jul 14 06:13:22 MDT 2006
On 7/14/06, HermÃnio Miguel Sanches <hsanches at gmail.com> wrote:
> I am new to twisted and I am trying to implement a simple client that needs
> to deal with several servers (windows platform).
> I would like to send from the client asynchronous requests to all the
> server, using TCP
> I think that a solution would be to use a reactor per server connection in
> the client, but that does not seems possible as the reactor is a singleton.
No, you don't use multiple reactors, you use one reactor and simply
call connectTCP multiple times.
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the Twisted-Python
mailing list