Imported modules
|
|
import socket
from twisted.internet.interfaces import IReactorFDSet, IReactorCore, IReactorTime, IReactorUNIX
from twisted.persisted import styles
from twisted.python import threadable, log
from twisted.python.components import implements
from twisted.python.runtime import platform
|
Functions
|
|
|
|
_getReactor
|
_getReactor ()
|
|
callAfterShutdown
|
callAfterShutdown ( function )
|
|
callBeforeShutdown
|
callBeforeShutdown ( function )
Add a function to be called before shutdown begins.
These functions are tasks to be performed in order to run a
"clean" shutdown. This may involve tasks that keep the mainloop
running, so any function registered in this list may return a
Deferred, which will delay the actual shutdown until later.
|
|
callDuringShutdown
|
callDuringShutdown ( function )
Add a function to be called during shutdown.
- These functions ought to shut down the event loop
- stopping
thread pools, closing down all connections, etc.
|
|
callWhenRunning
|
callWhenRunning ( function )
Add a function to be called when the system starts running.
If the system is already running, then the function runs immediately. If
the system has not yet started running, the function will be queued to get
run when the mainloop starts.
|
|
installReactor
|
installReactor ( reactor )
|
|
removeCallAfterShutdown
|
removeCallAfterShutdown ( function )
|
|
removeCallBeforeShutdown
|
removeCallBeforeShutdown ( function )
Remove a function registered with callBeforeShutdown.
|
|
removeCallDuringShutdown
|
removeCallDuringShutdown ( function )
|
|
run
|
run ( installSignalHandlers=1 )
Run input/output and dispatched/delayed code.
This call "never" returns. It is the main loop which runs delayed timers
(see twisted.python.delay and addDelayed), and the I/O monitor (doSelect).
|
|
shutDown
|
shutDown ( *ignored )
Run all shutdown callbacks (save all running Applications) and exit.
This is called by various signal handlers which should cause
the process to exit. It can also be called directly in order
to trigger a clean shutdown.
|
|
stopMainLoop
|
stopMainLoop ( *ignored )
|
Classes
|
|
Delayeds |
Wrapper for twisted.python.delay.IDelayed objects, so they use IReactorTime.
|
DummyResolver |
An implementation of a synchronous resolver, from Python's socket stuff.
|
|