'can_recv(timeout = 0) -> bool
Returns True, if there is data available within `timeout` seconds.
Examples:
>>> import time
>>> t = tube()
>>> t.can_recv_raw = lambda *a: False
>>> t.can_recv()
False
>>> _=t.unrecv(\'data\')
>>> t.can_recv()
True
>>> _=t.recv()
>>> t.can_recv()
False'

def can_recv(self, timeout=0):

    return bool((self.buffer or self.can_recv_raw(timeout)))
