def wait_readwrite(fileno, timeout=None): if not timeout: timeout = 0 server.trampoline(fileno, read=True, write=True, timeout=int(timeout))
def _wait_read(self): trampoline(self._fd, True, False)
def _wait_write(self): trampoline(self._fd, False, True)