Example #1
0
def wait_readwrite(fileno, timeout=None):
    if not timeout:
        timeout = 0
    server.trampoline(fileno, read=True, write=True, timeout=int(timeout))
Example #2
0
 def _wait_read(self):
     trampoline(self._fd, True, False)
Example #3
0
 def _wait_write(self):
     trampoline(self._fd, False, True)
Example #4
0
def wait_readwrite(fileno, timeout=None):
    if not timeout:
        timeout = 0
    server.trampoline(fileno, read=True, write=True, timeout=int(timeout))
Example #5
0
 def _wait_read(self):
     trampoline(self._fd, True, False)
Example #6
0
 def _wait_write(self):
     trampoline(self._fd, False, True)