diff options
| author | 2019-10-11 13:59:28 +0100 | |
|---|---|---|
| committer | 2019-10-11 13:59:28 +0100 | |
| commit | 175f90f6a2aa8e5d7e3c6ccb641c6fcc127caa68 (patch) | |
| tree | 175d0855eccce52aedb1e0b75d5af05a107f2028 /src/PollSource.py | |
| parent | Don't exit when there are no connected servers (diff) | |
| signature | ||
add "poll sources" - objects that can provide additional filenos for polling
Diffstat (limited to 'src/PollSource.py')
| -rw-r--r-- | src/PollSource.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/PollSource.py b/src/PollSource.py new file mode 100644 index 00000000..b549b24e --- /dev/null +++ b/src/PollSource.py @@ -0,0 +1,12 @@ +import typing + +class PollSource(object): + def get_readables(self) -> typing.List[int]: + return [] + def get_writables(self) -> typing.List[int]: + return [] + + def is_readable(self, fileno: int): + pass + def is_writable(self, fileno: int): + pass |
