interface documentation

class IReactorWin32Events(Interface): (source)

View In Hierarchy

Win32 Event API methods

Present Since
10.2
Method addEvent Add a new win32 event to the event loop.
Method removeEvent Remove an event.
def addEvent(event, fd, action): (source)

Add a new win32 event to the event loop.

Parameters
event:objecta Win32 event object created using win32event.CreateEvent()
fd:FileDescriptoran instance of twisted.internet.abstract.FileDescriptor
action:stra string that is a method name of the fd instance. This method is called in response to the event.
def removeEvent(event): (source)

Remove an event.

Parameters
event:objecta Win32 event object added using IReactorWin32Events.addEvent
Returns
None