Paul Goins wrote: [...] > > Any suggestions of how to do this? Should I be specifying only "core" > stuff as services of the application object, and connecting the others > via reactor.connectTCP/listenTCP as needed? Can I add to and remove > services from the application object once the reactor starts?
Yes, you can add and remove services from the application object once the reactor starts. To remove a service, use the disownServiceParent method of the service (as suggested by the docstring of http://twistedmatrix.com/documents/current/api/twisted.application.service.IServiceCollection.html#removeService). The docstrings aren't 100% explicit about this, but that will stop the service. As you might guess, you can add services with setServiceParent at any time too. That said, if plain connectTCP/listenTCP are more convenient for you than the corresponding IService implementations, then feel free to use them instead. -Andrew. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python