IAC binary
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m31s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2025-01-30 23:54:26 +11:00
parent e8ad0b60dd
commit a281ca9df7

View File

@ -963,6 +963,24 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
$iaccmd = NULL; $iaccmd = NULL;
break; break;
// Suppress Go Ahead
case 0x03:
if ($iaccmd === 0xfb) {
Log::debug(sprintf('%s: - IAC WILL SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
// Config with DO
$this->client->send(chr(0xff).chr(0xfd).$iac);
} elseif ($iaccmd === 0xfd) {
Log::debug(sprintf('%s: - IAC DO SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
// Config with WILL
$this->client->send(chr(0xff).chr(0xfb).$iac);
$this->client->iac_bin = true;
}
$iaccmd = NULL;
break;
case 0xfb: case 0xfb:
Log::debug(sprintf('%s: - IAC WILL [%02x]',self::LOGKEY,ord($iac))); Log::debug(sprintf('%s: - IAC WILL [%02x]',self::LOGKEY,ord($iac)));
$iaccmd = ord($iac); $iaccmd = ord($iac);
@ -981,7 +999,7 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
} }
if ($iaccmd) { if ($iaccmd) {
$iac = $this->client->read(10,1); $iac = ord($this->client->read(10,1));
$ch = NULL; $ch = NULL;
} }