<div>Thanks for reply</div><div><br></div><div>Yes, of course. </div><div><br></div><div>I followed the turotial ,</div><div><br></div><div><br></div><div><br></div><div><br></div><div>_______________________________</div>
<div><br></div><div><br></div><div>class FingerService(service.Service):</div><div>    ...</div><div>    def startService(self):</div><div>        print &#39;start service&#39;</div><div>        ....</div><div><br></div><div>
application = service.Application(&#39;finger&#39;)</div><div>f = FingerService()</div><div>serviceCollection = service.IServiceCollection(application)</div><div>internet.TCPServer(9000, f.get_FingerFactory()</div><div>                            ).<font color="#3333ff">setServiceParent</font>(serviceCollection)</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">2012/2/3  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 01:43 am, <a href="mailto:yueyoum@gmail.com">yueyoum@gmail.com</a> wrote:<br>
&gt;Hi, all<br>
&gt;<br>
&gt;I&#39;m a new guy for twisted,<br>
&gt;I just study the example of finger14.tac<br>
&gt;at this page :<br>
&gt;<a href="http://twistedmatrix.com/documents/current/core/howto/tutorial/protocol.html" target="_blank">http://twistedmatrix.com/documents/current/core/howto/tutorial/protocol.html</a><br>
&gt;<br>
</div>&gt;But,  *startService* not called when program running.<br>
<br>
Services are only started if they&#39;re added to the application object.<br>
Did you use setServiceParent to make the application object the parent<br>
of your service?<br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>