Hello all. :)<br><br>I&#39;m trying to learn Twisted, and to replace irritating telnetlib code for a simple telnet client application to do so. The problem is I&#39;m slightly lost as to where to start with the twisted.conch.telnet
 library, so was wondering if anyone could point me to a simple example.<br><br>So far, I understand the whole client factory thing-- but where I start getting lost is where we get to the &quot;protocol&quot; point (I know I know-- so early to get confused!).
<br><br>Specifically, in the buildProtocol method of a ReconnectingClientFactory instance.. what should I be returning a subclass of?<br><br>There&#39;s a telnet.Telnet<span style="font-weight: bold;"></span>, which /looks/ like it would be handling all of the telnet negotiation nicely, but it has methods like &quot;def enableRemote&quot; that call &quot;
self.protocol.enableRemote&quot;.. and I&#39;m not sure what should be put there, or how that should have been handled. <br><br>My best success so far was to have it return a subclass of telnet.StatefulTelnetProtocol. It does the &quot;basis&quot; of what I want: a line-oriented output from the telnet protocol connection. However, it also returns all the negotiation characters, so it seems like it&#39;s not actually implementing the telnet negotiation part itself. 
<br><br>Then there&#39;s telnet.TelnetBootstrapProtocol which looks very interesting but looks like its mostly handling telnet features I&#39;m not interested in (various line modes, screen size negotiation, etc) yet... and a 
telnet.TelnetProtocol that I&#39;m very confused by.. it&#39;s inheriting from ITelnetProtocol which appears to define the basic negotiation methods, but it doesn&#39;t appear to -do- anything. (And telnet.Telnet, which does 
<span style="font-style: italic;">not</span> inherit from that interface, does appear to support -doing- the negotiation)<br><br>This might all be a lot of babbling, and if so-- sorry! I&#39;m just not sure where to get started on understanding what&#39;s going on in this module to make use of it. :) I tried googling around to see if I could find a simple display of gluing the conch modules together to produce a line-oriented telnet client connection that appeared to handle the negotiation ... just to get started-- and I can&#39;t find one. Does anyone know of one? (Or, if I give you $0.25, could you throw one together? :))
<br><br>Thanks in advance.<br><br>--S<br>