IAC binary
This commit is contained in:
parent
6e7bcc3fe8
commit
21519d680b
@ -953,15 +953,17 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
|||||||
Log::debug(sprintf('%s: - IAC WILL BINARY [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC WILL BINARY [%02x]',self::LOGKEY,ord($iac)));
|
||||||
|
|
||||||
// Config with DO
|
// Config with DO
|
||||||
$this->client->send(chr(0xff).chr(0xfd).$iac,10);
|
//$this->client->send(chr(0xff).chr(0xfd).$iac,10);
|
||||||
|
|
||||||
} elseif ($iaccmd === 0xfd) {
|
} elseif ($iaccmd === 0xfd) {
|
||||||
Log::debug(sprintf('%s: - IAC DO BINARY [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC DO BINARY [%02x]',self::LOGKEY,ord($iac)));
|
||||||
|
|
||||||
// Config with WILL
|
// Config with WILL
|
||||||
|
if ($this->client->iac_bin) {
|
||||||
$this->client->send(chr(0xff).chr(0xfb).$iac,10);
|
$this->client->send(chr(0xff).chr(0xfb).$iac,10);
|
||||||
$this->client->iac_bin = true;
|
$this->client->iac_bin = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$iaccmd = NULL;
|
$iaccmd = NULL;
|
||||||
break;
|
break;
|
||||||
@ -972,28 +974,31 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
|||||||
Log::debug(sprintf('%s: - IAC WILL SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC WILL SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
|
||||||
|
|
||||||
// Config with DO
|
// Config with DO
|
||||||
$this->client->send(chr(0xff).chr(0xfd).$iac,10);
|
//$this->client->send(chr(0xff).chr(0xfd).$iac,10);
|
||||||
|
|
||||||
} elseif ($iaccmd === 0xfd) {
|
} elseif ($iaccmd === 0xfd) {
|
||||||
Log::debug(sprintf('%s: - IAC DO SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC DO SUPPRESS-GO-AHEAD [%02x]',self::LOGKEY,ord($iac)));
|
||||||
|
|
||||||
// Config with WILL
|
// Config with WILL
|
||||||
$this->client->send(chr(0xff).chr(0xfb).$iac,10);
|
$this->client->send(chr(0xff).chr(0xfb).$iac,10);
|
||||||
$this->client->iac_bin = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$iaccmd = NULL;
|
$iaccmd = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Will
|
||||||
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);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Do
|
||||||
case 0xfd:
|
case 0xfd:
|
||||||
Log::debug(sprintf('%s: - IAC DO [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC DO [%02x]',self::LOGKEY,ord($iac)));
|
||||||
$iaccmd = ord($iac);
|
$iaccmd = ord($iac);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// IAC
|
||||||
case 0xff:
|
case 0xff:
|
||||||
Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac)));
|
||||||
$iaccmd = ord($iac);
|
$iaccmd = ord($iac);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user