<br><br><div class="gmail_quote">On Fri, Sep 10, 2010 at 7:55 PM, belk Dj <span dir="ltr">&lt;<a href="mailto:d_belkhiter@yahoo.fr">d_belkhiter@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">I need to communicate with servers over tcp and also communicate with other servers over udp.<br>It seems not possible to launch two reactor objects one for tcp and one for udp.<br>
The code after a reactor.run is not called.<br>How can this can be solved ?<br><br></td></tr></tbody></table></blockquote><div><br>I&#39;m not an expert in any way, but I&#39;ve made something similar using 2 factories.<br>
<br>I think that it is also possible with one factory that uses 2 protocols.<br><br>The code after reactor.run() will be invoked only after the reactor stops. So, you can have 2 factories, each with a different protocol (1 tcp, 1 udp) and then start the reactor.<br>
<br>Pandelis<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
One more thing that deals with timer.<br>When i send a message to a server if after some time i don&#39;t get an acknowledge i re send the message. <br>And that x times.<br>To do that i use Timer. When i send the message i start the timer if the acknowledge comes before the timeout i cancel the timer.<br>
If i don&#39;t receive this acknwledge in time i cancel the timer i re send the previous message and i re start the timer.<br><br>In this two cases the program fails with the message the timer is still started.<br>What is the issue ? <br>
<br>Regards</td></tr></tbody></table><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" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br>