def poll(self, socket, event, timeout=None):
    if (not isinstance(socket, TransmissionControlObject)):
        raise Error(errno.ENOTSOCK)
    if (not (socket.addr and self.sap[socket.addr])):
        raise Error(errno.EBADF)
    return socket.poll(event, timeout)
def poll(self, socket, event, timeout=None):
    if (not isinstance(socket, TransmissionControlObject)):
        raise Error(errno.ENOTSOCK)
    if (not (socket.addr and self.sap[socket.addr])):
        raise Error(errno.EBADF)
    return socket.poll(event, timeout)