t.i.w.Win32Reactor(posixbase.PosixReactorBase) : class documentation

Part of twisted.internet.win32eventreactor View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IReactorFDSet, twisted.internet.interfaces.IReactorProcess, twisted.internet.interfaces.IReactorWin32Events

Reactor that uses Win32 event APIs.
Instance Variables_readsA dictionary mapping FileDescriptor instances to a win32 event object used to check for read events for that descriptor.
_writesA dictionary mapping FileDescriptor instances to a arbitrary value. Keys in this dictionary will be given a chance to write out their data.
_eventsA dictionary mapping win32 event object to tuples of FileDescriptor instances and event masks.
Method __init__ Undocumented
Method addEvent Add a new win32 event to the event loop.
Method removeEvent Remove an event.
Method addReader Add a socket FileDescriptor for notification of data available to read.
Method addWriter Add a socket FileDescriptor for notification of data available to write.
Method removeReader Remove a Selectable for notification of data available to read.
Method removeWriter Remove a Selectable for notification of data available to write.
Method removeAll Remove all selectables, and return a list of them.
Method getReaders Return the list of file descriptors currently monitored for input
Method getWriters Return the list file descriptors currently monitored for output events
Method doWaitForMultipleEvents Undocumented
Method spawnProcess Spawn a process.
Method _makeSocketEvent Make a win32 event object for a socket.
Method _runWrite Undocumented
Method _runAction Undocumented
def __init__(self): (source)
Undocumented
def _makeSocketEvent(self, fd, action, why): (source)
Make a win32 event object for a socket.
def addEvent(self, event, fd, action): (source)
Add a new win32 event to the event loop.
def removeEvent(self, event): (source)
Remove an event.
def addReader(self, reader): (source)
Add a socket FileDescriptor for notification of data available to read.
def addWriter(self, writer): (source)
Add a socket FileDescriptor for notification of data available to write.
def removeReader(self, reader): (source)
Remove a Selectable for notification of data available to read.
def removeWriter(self, writer): (source)
Remove a Selectable for notification of data available to write.
def removeAll(self): (source)
Remove all selectables, and return a list of them.
def getReaders(self): (source)
Return the list of file descriptors currently monitored for input events by the reactor.
Returnsthe list of file descriptors monitored for input events. (type: list of IReadDescriptor )
def getWriters(self): (source)
Return the list file descriptors currently monitored for output events by the reactor.
Returnsthe list of file descriptors monitored for output events. (type: list of IWriteDescriptor )
def doWaitForMultipleEvents(self, timeout): (source)
Undocumented
def _runWrite(self, fd): (source)
Undocumented
def _runAction(self, action, fd): (source)
Undocumented
def spawnProcess(self, processProtocol, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None): (source)
Spawn a process.
API Documentation for Twisted, generated by pydoctor at 2011-04-03 00:32:03.