From 175f90f6a2aa8e5d7e3c6ccb641c6fcc127caa68 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 11 Oct 2019 13:59:28 +0100 Subject: add "poll sources" - objects that can provide additional filenos for polling --- src/PollSource.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/PollSource.py (limited to 'src/PollSource.py') 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 -- cgit v1.3.1-10-gc9f91