On 06:11 am, [email protected] wrote:
>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)
Notice that nowhere here does `f` get attached to `application`. You
need this:
f.setServiceParent(application)
Jean-Paul
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python