'Return the number of bytes currently in the input buffer.'

@property
def in_waiting(self):

    if (not self.is_open):
        raise portNotOpenError
    (lr, lw, lx) = select.select([self._socket], [], [], 0)
    return len(lr)
