Thanks for reply
Yes, of course.
I followed the turotial ,
_______________________________
class FingerService(service.Service):
...
def startService(self):
print 'start service'
....
application = service.Application('finger')
f = FingerService()
serviceCollection = service.IServiceCollection(application)
internet.TCPServer(9000, f.get_FingerFactory()
).setServiceParent(serviceCollection)
2012/2/3 <[email protected]>
> On 01:43 am, [email protected] wrote:
> >Hi, all
> >
> >I'm a new guy for twisted,
> >I just study the example of finger14.tac
> >at this page :
> >
> http://twistedmatrix.com/documents/current/core/howto/tutorial/protocol.html
> >
> >But, *startService* not called when program running.
>
> Services are only started if they're added to the application object.
> Did you use setServiceParent to make the application object the parent
> of your service?
>
> Jean-Paul
>
> _______________________________________________
> Twisted-Python mailing list
> [email protected]
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python