<div>Many Thanks Christopher for the quick answer </div>
<div>&nbsp;</div>
<div>I was missing the point with two basic errors:</div>
<div>1)&nbsp;trying to connect multiple times(n) using reactor.connectTCP()&nbsp; with (n) calls to reactor.run() </div>
<div>2)&nbsp;trying to instantiate only once the pb.PBClientFactory() for different calls to reactor.connectTCP()&nbsp;</div>
<div>&nbsp;</div>
<div>What I did was:</div>
<div>1) call only once&nbsp;reactor.run()&nbsp;after launching all the callbacks</div>
<div>2) instantiating pb.PBClientFactory() each time before&nbsp;a call to reactor.connectTCP()&nbsp;(to change the server)</div>
<div>&nbsp;</div>
<div>Please advise if I am doing something wrong.</div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>&nbsp;</div>
<div>Miguel</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 7/14/06, <b class="gmail_sendername">Christopher Armstrong</b> &lt;<a href="mailto:radix@twistedmatrix.com">radix@twistedmatrix.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 7/14/06, Hermínio Miguel Sanches &lt;<a href="mailto:hsanches@gmail.com">hsanches@gmail.com</a>&gt; wrote:
<br>&gt; I am new to twisted and I am trying to implement a simple client that needs<br>&gt; to deal with several servers (windows platform).<br>&gt; I would like to send from the client asynchronous requests to all the<br>
&gt; server, using TCP<br>&gt; I think that a solution would be to use a reactor per server connection in<br>&gt; the client, but that does not seems possible as the reactor is a singleton.<br><br>No, you don't use multiple reactors, you use one reactor and simply
<br>call connectTCP multiple times.<br><br>--<br>Christopher Armstrong<br>International Man of Twistery<br><a href="http://radix.twistedmatrix.com/">http://radix.twistedmatrix.com/</a><br><a href="http://twistedmatrix.com/">
http://twistedmatrix.com/</a><br><a href="http://canonical.com/">http://canonical.com/</a><br><br>_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">
Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br><br><br></blockquote></div><br>