twisted.internet.test.test_tcp._FakeFDSetReactor(object) class documentationtwisted.internet.test.test_tcp
(View In Hierarchy)
Implements interfaces: twisted.internet.interfaces.IReactorFDSet
An in-memory implementation of IReactorFDSet,
which records the current sets of active IReadDescriptor
and IWriteDescriptors.
| Method | __init__ | Undocumented |
| Method | addReader | I add reader to the set of file descriptors to get read events for. |
| Method | removeReader | Removes an object previously added with addReader. |
| Method | addWriter | I add writer to the set of file descriptors to get write events for. |
| 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. |
| Instance Variable | _readers | The set of IReadDescriptors
active on this _FakeFDSetReactor (type: set) |
| Instance Variable | _writers 0 | The set of IWriteDescriptors
active on this _FakeFDSetReactor |
| Instance Variable | _writers | set |
I add reader to the set of file descriptors to get read events for.
| Parameters | reader | An IReadDescriptor
provider that will be checked for read events until it is removed from the
reactor with removeReader. |
| Returns | None. | |
I add writer to the set of file descriptors to get write events for.
| 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. | |
Return the list of file descriptors currently monitored for input events by the reactor.
| Returns | the list of file descriptors monitored for input events. (type: list of IReadDescriptor) | |