A basis for reactors that use file descriptors.
Methods
|
|
|
|
__init__
|
__init__ ( self, installSignalHandlers=1 )
|
|
_handleSignals
|
_handleSignals ( self )
Install the signal handlers for the Twisted event loop.
|
|
clientSSL
|
clientSSL (
self,
host,
port,
protocol,
contextFactory,
timeout=30,
)
|
|
clientTCP
|
clientTCP (
self,
host,
port,
protocol,
timeout=30,
)
See twisted.internet.interfaces.IReactorTCP.clientTCP
|
|
clientUNIX
|
clientUNIX (
self,
address,
protocol,
timeout=30,
)
See twisted.internet.interfaces.IReactorUNIX.clientUNIX
|
|
installWaker
|
installWaker ( self )
Install a `waker' to allow other threads to wake up the IO thread.
|
|
listenSSL
|
listenSSL (
self,
port,
factory,
contextFactory,
backlog=5,
interface='',
)
|
|
listenTCP
|
listenTCP (
self,
port,
factory,
backlog=5,
interface='',
)
See twisted.internet.interfaces.IReactorTCP.listenTCP
|
|
listenUDP
|
listenUDP (
self,
port,
factory,
interface='',
maxPacketSize=8192,
)
See twisted.internet.interfaces.IReactorUDP.listenUDP
|
|
listenUNIX
|
listenUNIX (
self,
address,
factory,
backlog=5,
)
Listen on a UNIX socket.
|
|
mainLoop
|
mainLoop ( self )
|
|
run
|
run ( self )
|
|
spawnProcess
|
spawnProcess (
self,
processProtocol,
executable,
args=(),
env={},
path=None,
uid=None,
gid=None,
)
Exceptions
|
|
NotImplementedError, "process only available in this reactor on POSIX"
|
|
|
startRunning
|
startRunning ( self )
|
|