<br><div><span class="gmail_quote">2005/6/21, Christopher Armstrong &lt;<a href="mailto:radeex@gmail.com">radeex@gmail.com</a>&gt;:</span><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><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>