<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp; class TelnetFactory(ClientFactory):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def buildProtocol(self, addr):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return TelnetTransport(TelnetPrinter)
<br><br>&nbsp;&nbsp;reactor.connectTCP(host, port, TelnetFactory())<br><br>For something line oriented, you might mix in LineReceiver (as<br>StatefulTelnetProtocol does) or instantiate one directly yourself in a<br>TelnetProtocol subclass and feed it bytes in your dataReceived
<br>implementation.<br><br>Hope this helps,</blockquote><div><br>Oh, perfect. That was very useful, thanks. I had a feeling the problem was in&nbsp; plugging the objects together properly in buildProtocol, but&nbsp; just couldn&#39;t see quite how to do it right. 
<br><br>Merci!<br><br>--S<br></div><br></div>