<br><br><div><span class="gmail_quote">On 6/21/05, <b class="gmail_sendername">Eric Hsu</b> &lt;<a href="mailto:nkeric@gmail.com">nkeric@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div><span class="gmail_quote">2005/6/21, Christopher Armstrong &lt;<a href="mailto:radeex@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">radeex@gmail.com</a>&gt;:</span><span class="q">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can do it based on the Protocol instance. For TCP, there is one<br>Protocol instance per connection, and it has access to the transport.</blockquote></span><div><br>
Hi Christopher!<br>
<br>
Big thanks first!<br>
<br>
When I writing codes like the following to provide TCP/UDP services:<br>
<br>
factory = Factory()<br>
factory.protocol = MyTCPService<br>
reactor.listenTCP(port1, factory)<br>
reactor.listenUDP(port2, MyUDPService())<br>
<br>
How could I get the protocol instance of each client and maintain them?<br>
Please tell me more details if you could, since I'm very very new to twisted :)<br>
<br>
- Eric<br>
</div><br></div><br></blockquote></div>Read the documentation first, it is all there in the HOW-TOs and tutorials.<br><br><br>-- <br>If you don't know what you want, you probably need a nap.