From e8ad0b60dd88a1f55796d21b0ba81d61ab7c52f8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 30 Jan 2025 23:48:11 +1100 Subject: [PATCH] IAC binary --- app/Classes/Protocol/EMSI.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Classes/Protocol/EMSI.php b/app/Classes/Protocol/EMSI.php index c2b6a59..3393f8a 100644 --- a/app/Classes/Protocol/EMSI.php +++ b/app/Classes/Protocol/EMSI.php @@ -960,6 +960,9 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface $this->client->iac_bin = true; } + $iaccmd = NULL; + break; + case 0xfb: Log::debug(sprintf('%s: - IAC WILL [%02x]',self::LOGKEY,ord($iac))); $iaccmd = ord($iac); @@ -973,9 +976,15 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface default: Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac))); + $ch = $iac; $iac = NULL; } + if ($iaccmd) { + $iac = $this->client->read(10,1); + $ch = NULL; + } + } while (! is_null($iac)); }