Part of twisted.internet.interfaces View Source View In Hierarchy
Known implementations: twisted.internet._threadedselect.ThreadedSelectReactor, twisted.internet.cfreactor.CFReactor, twisted.internet.epollreactor.EPollReactor, twisted.internet.gtk2reactor.Gtk2Reactor, twisted.internet.gtkreactor.GtkReactor, twisted.internet.kqreactor.KQueueReactor, twisted.internet.pollreactor.PollReactor, twisted.internet.selectreactor.SelectReactor, twisted.internet.win32eventreactor.Win32Reactor
Implement me to be able to use IFileDescriptor
type resources.
Method | addReader | I add reader to the set of file descriptors to get read events for. |
Method | addWriter | I add writer to the set of file descriptors to get write events for. |
Method | removeReader | Removes an object previously added with addReader .
|
Method | removeWriter | Removes an object previously added with addWriter .
|
Method | removeAll | Remove all readers and writers. |
Method | getReaders | Return the list of file descriptors currently monitored for input events by the reactor. |
Method | getWriters | Return the list file descriptors currently monitored for output events by the reactor. |
Parameters | reader | An IReadDescriptor
provider that will be checked for read events until it is removed from the
reactor with removeReader .
|
Returns | None .
|
Parameters | writer | An IWriteDescriptor
provider that will be checked for write events until it is removed from the
reactor with removeWriter .
|
Returns | None .
|
Remove all readers and writers.
Should not remove reactor internal reactor connections (like a waker).Returns | A list of IReadDescriptor
and IWriteDescriptor
providers which were removed.
|
Returns | the list of file descriptors monitored for input events.
(type: list of IReadDescriptor
) |
Returns | the list of file descriptors monitored for output events.
(type: list of IWriteDescriptor
) |