<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 'start service'</div><div> ....</div><div><br></div><div>
application = service.Application('finger')</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"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></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>
>Hi, all<br>
><br>
>I'm a new guy for twisted,<br>
>I just study the example of finger14.tac<br>
>at this page :<br>
><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>
><br>
</div>>But, *startService* not called when program running.<br>
<br>
Services are only started if they'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>