class IOCPReactor(base._SignalReactorMixin, base.ReactorBase, _ThreadedWin32EventsMixin): (source)
Implements interfaces: twisted.internet.interfaces.IReactorMulticast
, twisted.internet.interfaces.IReactorProcess
, twisted.internet.interfaces.IReactorTCP
, twisted.internet.interfaces.IReactorUDP
Undocumented
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | connect |
No summary |
Method | connect |
No summary |
Method | create |
Undocumented |
Method | do |
Poll the IO completion port for new events. |
Method | install |
Undocumented |
Method | listen |
Connects a given DatagramProtocol to the given numeric UDP port. |
Method | listen |
No summary |
Method | listen |
No summary |
Method | listen |
Connects a given DatagramProtocol to the given numeric UDP port. |
Method | register |
Undocumented |
Method | remove |
Undocumented |
Method | remove |
Undocumented |
Method | spawn |
Spawn a process. |
Method | wake |
Wake up the event loop. |
Instance Variable | handles |
Undocumented |
Instance Variable | port |
Undocumented |
Method | _call |
Undocumented |
Inherited from _SignalReactorMixin
:
Method | main |
Undocumented |
Method | run |
Undocumented |
Method | start |
Extend the base implementation in order to remember whether signal handlers should be installed later. |
Method | _handle |
Install the signal handlers for the Twisted event loop. |
Method | _really |
Extend the base implementation by also installing signal handlers, if self._installSignalHandlers is true. |
Instance Variable | _install |
A flag which indicates whether any signal handlers will be installed during startup. This includes handlers for SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK to stop the reactor. |
Inherited from ReactorBase
(via _SignalReactorMixin
):
Method | add |
Undocumented |
Method | add |
See twisted.internet.interfaces.IReactorCore.addSystemEventTrigger. |
Method | add |
Undocumented |
Method | call |
See twisted.internet.interfaces.IReactorFromThreads.callFromThread . |
Method | call |
See twisted.internet.interfaces.IReactorInThreads.callInThread . |
Method | call |
See twisted.internet.interfaces.IReactorTime.callLater. |
Method | call |
See twisted.internet.interfaces.IReactorCore.callWhenRunning. |
Method | crash |
See twisted.internet.interfaces.IReactorCore.crash. |
Method | disconnect |
Disconnect every reader, and writer in the system. |
Method | fire |
See twisted.internet.interfaces.IReactorCore.fireSystemEvent. |
Method | get |
See twisted.internet.interfaces.IReactorTime.getDelayedCalls |
Method | get |
Undocumented |
Method | get |
See twisted.internet.interfaces.IReactorThreads.getThreadPool . |
Method | get |
Undocumented |
Method | iterate |
See twisted.internet.interfaces.IReactorCore.iterate. |
Method | remove |
Undocumented |
Method | remove |
See twisted.internet.interfaces.IReactorCore.removeSystemEventTrigger. |
Method | remove |
Undocumented |
Method | resolve |
Return a Deferred that will resolve a hostname. |
Method | run |
Run all pending timed calls. |
Method | sig |
Handle a SIGBREAK interrupt. |
Method | sig |
Handle a SIGINT interrupt. |
Method | sig |
Handle a SIGTERM interrupt. |
Method | stop |
See twisted.internet.interfaces.IReactorCore.stop. |
Method | suggest |
See twisted.internet.interfaces.IReactorThreads.suggestThreadPoolSize . |
Method | timeout |
Determine the longest time the reactor may sleep (waiting on I/O notification, perhaps) before it must wake up to service a time-related event. |
Class Variable | __name__ |
Undocumented |
Class Variable | installed |
Undocumented |
Class Variable | seconds |
Get the current time in seconds. |
Instance Variable | running |
See IReactorCore.running |
Instance Variable | thread |
Undocumented |
Instance Variable | threadpool |
Undocumented |
Instance Variable | threadpool |
Undocumented |
Instance Variable | using |
Undocumented |
Instance Variable | waker |
Undocumented |
Method | _cancel |
Undocumented |
Method | _init |
Create the threadpool accessible with callFromThread. |
Method | _init |
Undocumented |
Method | _insert |
Undocumented |
Method | _move |
Undocumented |
Method | _stop |
Stop the reactor threadpool. This method is only valid if there is currently a threadpool (created by _initThreadPool ). It is not intended to be called directly; instead, it will be called by a shutdown trigger created in ... |
Method | _uninstall |
Undocumented |
Class Variable | _lock |
Undocumented |
Instance Variable | _cancellations |
Undocumented |
Instance Variable | _event |
Undocumented |
Instance Variable | _exit |
See _ISupportsExitSignalCapturing._exitSignal |
Instance Variable | _internal |
Undocumented |
Instance Variable | _just |
A flag which is true between the time reactor.stop is called and the time the shutdown system event is fired. This is used to determine whether that event should be fired after each iteration through the mainloop... |
Instance Variable | _new |
Undocumented |
Instance Variable | _pending |
Undocumented |
Instance Variable | _register |
A flag controlling whether the reactor will register the thread it is running in as the I/O thread when it starts. If True, registration will be done, otherwise it will not be. |
Instance Variable | _started |
A flag which is true from the time reactor.run is called until the time reactor.run returns. This is used to prevent calls to reactor.run on a running reactor. This should be replaced with an explicit state machine. |
Instance Variable | _started |
Undocumented |
Instance Variable | _stopped |
A flag which is true between paired calls to reactor.run and reactor.stop. This should be replaced with an explicit state machine. |
Instance Variable | _threadpool |
Undocumented |
Inherited from PluggableResolverMixin
(via _SignalReactorMixin
, ReactorBase
):
Method | install |
See IReactorPluggableNameResolver . |
Method | install |
See IReactorPluggableResolver . |
Instance Variable | resolver |
The installed IResolverSimple . |
Property | name |
Implementation of read-only IReactorPluggableNameResolver.nameResolver . |
Instance Variable | _name |
The installed IHostnameResolver . |
Inherited from _ThreadedWin32EventsMixin
(via _SignalReactorMixin
, ReactorBase
, PluggableResolverMixin
):
Method | add |
No summary |
Method | remove |
No summary |
Method | _make |
Create and (in a new thread) start a Win32Reactor instance to use for the implementation of IReactorWin32Events . |
Method | _unmake |
Stop and discard the reactor started by _makeHelperReactor. |
Instance Variable | _reactor |
The Win32Reactor running in the other thread. This is None until it is actually needed. |
Instance Variable | _reactor |
The threading.Thread which is running the Win32Reactor . This is None until it is actually needed. |
Connects a given DatagramProtocol to the given numeric UDP port.
EXPERIMENTAL.
Returns | |
object conforming to IListeningPort. |
Connects a given DatagramProtocol
to the given numeric UDP port.
Returns | |
object conforming to IListeningPort . |
Spawn a process.