Some comments for binkd
This commit is contained in:
parent
724bc4c5af
commit
3392092131
@ -116,6 +116,8 @@ final class Binkp extends BaseProtocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* BINKD handshake
|
||||||
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function binkp_hs(): void
|
private function binkp_hs(): void
|
||||||
@ -298,6 +300,8 @@ final class Binkp extends BaseProtocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Receive data from the remote
|
||||||
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function binkp_recv(): int
|
private function binkp_recv(): int
|
||||||
@ -1215,9 +1219,11 @@ final class Binkp extends BaseProtocol
|
|||||||
if ($this->send->total_count && ! $this->send->fd)
|
if ($this->send->total_count && ! $this->send->fd)
|
||||||
$this->send->open();
|
$this->send->open();
|
||||||
|
|
||||||
|
// We have an open file descriptor, set our mode to send
|
||||||
if ($this->send->fd) {
|
if ($this->send->fd) {
|
||||||
$this->sessionSet(self::SE_SENDFILE);
|
$this->sessionSet(self::SE_SENDFILE);
|
||||||
|
|
||||||
|
// NR mode, we wait for an M_GET before sending
|
||||||
if ($this->setup->opt_nr&self::O_WE) {
|
if ($this->setup->opt_nr&self::O_WE) {
|
||||||
$this->sessionSet(self::SE_WAITGET);
|
$this->sessionSet(self::SE_WAITGET);
|
||||||
|
|
||||||
@ -1229,6 +1235,7 @@ final class Binkp extends BaseProtocol
|
|||||||
|
|
||||||
$this->sessionClear(self::SE_SENTEOB);
|
$this->sessionClear(self::SE_SENTEOB);
|
||||||
|
|
||||||
|
// We dont have anything to send
|
||||||
} else {
|
} else {
|
||||||
$this->sessionSet(self::SE_NOFILES);
|
$this->sessionSet(self::SE_NOFILES);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user