Lines Matching refs:client_channel

4046      * @param int $client_channel
4051 protected function get_channel_packet($client_channel, $skip_extended = false)
4053 if (!empty($this->channel_buffers[$client_channel])) {
4054 switch ($this->channel_status[$client_channel]) {
4056 foreach ($this->channel_buffers[$client_channel] as $i => $packet) {
4060 unset($this->channel_buffers[$client_channel][$i]);
4066 return substr(array_shift($this->channel_buffers[$client_channel]), 1);
4077 if ($client_channel == self::CHANNEL_EXEC && !$this->request_pty) {
4078 $this->close_channel($client_channel);
4088 if ($client_channel == -1 && $response === true) {
4109 if ($client_channel == self::CHANNEL_EXEC) {
4110 $this->send_channel_packet($client_channel, chr(0));
4119 if ($client_channel == $channel && $this->channel_status[$channel] == NET_SSH2_MSG_CHANNEL_DATA) {
4144 $this->send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_EOF, $this->server_channels[$client_channel]));
4179 $result = $client_channel == $channel ? true : $this->get_channel_packet($client_channel, $skip_extended);
4186 if ($client_channel == $channel) {
4190 return $this->get_channel_packet($client_channel, $skip_extended);
4202 return $this->get_channel_packet($client_channel, $skip_extended);
4208 if ($client_channel == $channel && $type == NET_SSH2_MSG_CHANNEL_CLOSE) {
4211 return $this->get_channel_packet($client_channel, $skip_extended);
4238 if ($client_channel == $channel) {
4255 if ($client_channel == $channel) {
4532 * @param int $client_channel
4536 protected function send_channel_packet($client_channel, $data)
4539 if (!$this->window_size_client_to_server[$client_channel]) {
4551 $this->packet_size_client_to_server[$client_channel],
4552 $this->window_size_client_to_server[$client_channel]
4559 $this->server_channels[$client_channel],
4562 $this->window_size_client_to_server[$client_channel] -= strlen($temp);
4574 * @param int $client_channel
4578 private function close_channel($client_channel, $want_reply = false)
4582 $this->send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_EOF, $this->server_channels[$client_channel]));
4585 $this->send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$client_channel]));
4588 $this->channel_status[$client_channel] = NET_SSH2_MSG_CHANNEL_CLOSE;
4593 while (!is_bool($this->get_channel_packet($client_channel))) {
4597 $this->send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$client_channel]));
4600 $this->close_channel_bitmap($client_channel);
4606 * @param int $client_channel The channel number to maintain closure status of
4609 private function close_channel_bitmap($client_channel)
4611 switch ($client_channel) {