BINKP responding to incoming netmail pings
This commit is contained in:
@@ -274,7 +274,7 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
$rc = $this->zmodem_senddone();
|
||||
|
||||
} else {
|
||||
$rc = $this->zmodem_receive($this->client,$proto,$this->recv,'.');
|
||||
$rc = $this->zmodem_receive($this->client,$proto,$this->recv);
|
||||
}
|
||||
|
||||
return $rc;
|
||||
@@ -285,13 +285,12 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
*
|
||||
* @param SocketClient $client
|
||||
* @param Receive $recv
|
||||
* @param string $dir
|
||||
* @param int $canzap
|
||||
* @return int
|
||||
*/
|
||||
public function zmodem_receive(SocketClient $client,int $canzap,Receive $recv,string $dir): int
|
||||
public function zmodem_receive(SocketClient $client,int $canzap,Receive $recv,Address $ao): int
|
||||
{
|
||||
Log::debug(sprintf('%s: + Start [%d] into dir [%s]',__METHOD__,$canzap,$dir));
|
||||
Log::debug(sprintf('%s: + Start [%d]',__METHOD__,$canzap));
|
||||
|
||||
$opts = $this->init($client,$canzap);
|
||||
|
||||
@@ -336,7 +335,7 @@ final class Zmodem extends Protocol implements CRCInterface,ZmodemInterface
|
||||
$frame = self::ZSKIP;
|
||||
|
||||
} else {
|
||||
switch ($this->recv->open()) {
|
||||
switch ($this->recv->open($ao)) {
|
||||
case self::FOP_SKIP:
|
||||
Log::info(sprintf('%s: = Skip this file [%s]',__METHOD__,$this->recv->name));
|
||||
$frame = self::ZSKIP;
|
||||
|
Reference in New Issue
Block a user