Good day, Jean-Paul:<br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 8:47 AM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 02:15 am, <a href="mailto:mebly5343@gmail.com">mebly5343@gmail.com</a> wrote:<br>
[...]<br></div></blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
</div>What about this specifically are you having difficulty with?  <br></blockquote><div><br>Actually, what I was having trouble with was getting an instance of the protocol class.  (The &quot;instance&quot; was from a <br>
debugging line I forgot to take back out.) The FAQ entry does answer my questions (which I didn&#39;t understand well <br>enough to ask clearly:-) ):<br><br>How do I get access to an instance of the protocol class?  (The answer is to derive a class from Factory and use that to <br>
store &quot;self&quot; from the protocol class.  The FAQ entry shows exactly how to do this through the __init__ method - thanks.)<br><br>Thanks also for steering me away from complexities like threads and Queue.  callWhenRunning allows me to run in the context<br>
of the reactor and access other Python objects, so that solves my problem.  <br><br>I will probably end up using a socket for that connection and running the server as a seperate process - but that is not the<br>key.<br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This isn&#39;t exactly wrong, but it&#39;s sort of misleading.  You&#39;ve defined<br>
the name &quot;instance&quot; here, but it&#39;s not bound to an instance.  It&#39;s bound<br>
to the TelnetEcho class.  <br>
<div class="im">[...]<br>
<br>
</div>It&#39;s possible this FAQ entry will help:<br>
<br>
<a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother" target="_blank">http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother</a><br>

<br>
Jean-Paul<br></blockquote><div><br>Thanks again for the very prompt and useful response.<br><br>Mark<br></div></div><br>