[Twisted-Python] Intercepting shutdown ?

Jean-Paul Calderone exarkun at divmod.com
Wed Jun 14 20:02:44 MDT 2006


On Wed, 14 Jun 2006 19:31:40 -0400, "Chaz." <eprparadocs at gmail.com> wrote:
>I am sorry I keep asking all these questions and hope you can tolerate
>at least one more. I have an application that has five services in it;
>two are factory based and three are protocol based (UDP).
>
>To shut the system down I need to blast out a couple of messages to one
>of the UDP connections. Is there an easy way to do this?
>

See twisted.internet.interfaces.IReactorCore and twisted.application:

http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorCore.html#twisted.internet.interfaces.IReactorCore.addSystemEventTrigger
http://twistedmatrix.com/documents/current/api/twisted.application.service.Service.html

Jean-Paul




More information about the Twisted-Python mailing list