public function waitReply($timeout = 10) {
        $timestart = time();
        while (true) {
            $char = $this->recvChr();
            $timerun = time() - $timestart;
            if ($timerun >= $timeout) {
                return false;
            }
            if(!empty($char)) {
                return true;
            }
        }
        return false;
    }