IAC binary
This commit is contained in:
parent
5f217291c5
commit
e0d2b11b07
@ -940,10 +940,11 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
|||||||
if ($ch === 0xff) {
|
if ($ch === 0xff) {
|
||||||
Log::debug(sprintf('%s:- TELNET IAC',self::LOGKEY));
|
Log::debug(sprintf('%s:- TELNET IAC',self::LOGKEY));
|
||||||
|
|
||||||
|
$iaccmd = NULL;
|
||||||
// Peek for the next 2 chars
|
// Peek for the next 2 chars
|
||||||
do {
|
do {
|
||||||
$iac = $this->client->read(10,1,MSG_PEEK);
|
$iac = $this->client->read(10,1,MSG_PEEK);
|
||||||
$iaccmd = NULL;
|
Log::debug(sprintf('%s: - IAC LOOP',self::LOGKEY,['iac'=>ord($iac),'cmd'=>$iaccmd)]);
|
||||||
|
|
||||||
switch (ord($iac)) {
|
switch (ord($iac)) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
@ -994,16 +995,16 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
|||||||
default:
|
default:
|
||||||
Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac)));
|
Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac)));
|
||||||
|
|
||||||
$ch = $iac;
|
$ch = ord($iac);
|
||||||
$iac = NULL;
|
$iac = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($iaccmd) {
|
if ($iaccmd) {
|
||||||
$iac = $this->client->read_ch(10);
|
$iac = ord($this->client->read_ch(10));
|
||||||
$ch = NULL;
|
$ch = NULL;
|
||||||
|
|
||||||
} elseif (is_null($ch)) {
|
} elseif (is_null($ch)) {
|
||||||
$ch = $this->client->read_ch(10);
|
$ch = ord($this->client->read_ch(10));
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (! is_null($iac));
|
} while (! is_null($iac));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user