IAC binary
This commit is contained in:
parent
e8ad0b60dd
commit
a281ca9df7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user