Lines Matching refs:response

562         $response = $this->get_channel_packet(self::CHANNEL, true);
563 if ($response === true && $this->isTimeout()) {
579 $response = $this->get_channel_packet(self::CHANNEL, true);
580 if ($response === false) {
599 $response = $this->get_channel_packet(self::CHANNEL, true);
600 if ($response === false) {
603 } elseif ($response === true && $this->isTimeout()) {
610 $response = $this->get_sftp_packet();
618 list($this->defaultVersion) = Strings::unpackSSH2('N', $response);
619 while (!empty($response)) {
620 list($key, $value) = Strings::unpackSSH2('ss', $response);
680 $response = $this->get_sftp_packet();
685 list($status) = Strings::unpackSSH2('N', $response);
687 $this->logError($response, $status);
809 * @param string $response
813 private function logError($response, $status = -1) argument
816 list($status) = Strings::unpackSSH2('N', $response);
822 list($message) = Strings::unpackSSH2('s', $response);
858 $response = $this->get_sftp_packet();
864 list(, $filename) = Strings::unpackSSH2('Ns', $response);
867 $this->logError($response);
937 $response = $this->get_sftp_packet();
940 $handle = substr($response, 4);
943 $this->logError($response);
1075 $response = $this->get_sftp_packet();
1081 $handle = substr($response, 4);
1085 $this->logError($response);
1101 $response = $this->get_sftp_packet();
1104 list($count) = Strings::unpackSSH2('N', $response);
1106 list($shortname) = Strings::unpackSSH2('s', $response);
1110 list($longname) = Strings::unpackSSH2('s', $response);
1112 $attributes = $this->parseAttributes($response);
1136 list($status) = Strings::unpackSSH2('N', $response);
1138 $this->logError($response, $status);
1497 $response = $this->get_sftp_packet();
1500 return $this->parseAttributes($response);
1502 $this->logError($response);
1567 $response = $this->get_sftp_packet();
1570 return $this->close_handle(substr($response, 4));
1572 $this->logError($response);
1691 $response = $this->get_sftp_packet();
1694 $attrs = $this->parseAttributes($response);
1697 $this->logError($response);
1748 $response = $this->get_sftp_packet();
1754 list($status) = Strings::unpackSSH2('N', $response);
1756 $this->logError($response, $status);
1857 $response = $this->get_sftp_packet();
1862 $this->logError($response);
1869 list($count) = Strings::unpackSSH2('N', $response);
1875 list($filename) = Strings::unpackSSH2('s', $response);
1932 $response = $this->get_sftp_packet();
1938 list($status) = Strings::unpackSSH2('N', $response);
1940 $this->logError($response, $status);
1994 $response = $this->get_sftp_packet();
2000 list($status) = Strings::unpackSSH2('N', $response);
2002 $this->logError($response, $status);
2034 $response = $this->get_sftp_packet();
2040 list($status) = Strings::unpackSSH2('N', $response);
2043 $this->logError($response, $status);
2151 $response = $this->get_sftp_packet();
2154 $handle = substr($response, 4);
2157 $this->logError($response);
2298 $response = $this->get_sftp_packet();
2304 list($status) = Strings::unpackSSH2('N', $response);
2306 $this->logError($response, $status);
2328 $response = $this->get_sftp_packet();
2334 list($status) = Strings::unpackSSH2('N', $response);
2336 $this->logError($response, $status);
2378 $response = $this->get_sftp_packet();
2381 $handle = substr($response, 4);
2384 $this->logError($response);
2447 $response = $this->get_sftp_packet($packets_sent - $i);
2452 $temp = substr($response, 4);
2468 $this->logError($response);
2484 $response = null;
2549 $response = $this->get_sftp_packet();
2556 list($status) = Strings::unpackSSH2('N', $response);
2558 $this->logError($response, $status);
2730 $response = $this->get_sftp_packet();
2758 $response = $this->get_sftp_packet();
2993 $response = $this->get_sftp_packet();
3000 list($status) = Strings::unpackSSH2('N', $response);
3002 $this->logError($response, $status);
3022 * @param string $response
3026 private function parseTime($key, $flags, &$response) argument
3029 list($attr[$key]) = Strings::unpackSSH2('Q', $response);
3031 list($attr[$key . '-nseconds']) = Strings::unpackSSH2('N', $response);
3041 * @param string $response
3045 protected function parseAttributes(&$response) argument
3048 list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
3050 list($flags) = Strings::unpackSSH2('N', $response);
3092 list($attr['size']) = Strings::unpackSSH2('Q', $response);
3095 list($attr['uid'], $attr['gid']) = Strings::unpackSSH2('NN', $response);
3098 list($attr['mode']) = Strings::unpackSSH2('N', $response);
3106 $attr += $this->parseTime('atime', $flags, $response);
3109 list($attr['atime'], $attr['mtime']) = Strings::unpackSSH2('NN', $response);
3112 $attr += $this->parseTime('createtime', $flags, $response);
3115 $attr += $this->parseTime('mtime', $flags, $response);
3121 list($count) = Strings::unpackSSH2('N', $response);
3127 list($attr['owner'], $attr['$group']) = Strings::unpackSSH2('ss', $response);
3137 list($attrib_bits, $attrib_bits_valid) = Strings::unpackSSH2('N2', $response);
3146 list($attr['allocation-size']) = Strings::unpackSSH2('Q', $response);
3152 list($text_hint) = Strings::unpackSSH2('C', $response);
3157 list($attr['mime-type']) = Strings::unpackSSH2('s', $response);
3161 list($attr['link-count']) = Strings::unpackSSH2('N', $response);
3165 list($attr['untranslated-name']) = Strings::unpackSSH2('s', $response);
3170 $attr += $this->parseTime('ctime', $flags, $response);
3173 list($count) = Strings::unpackSSH2('N', $response);
3175 list($key, $value) = Strings::unpackSSH2('ss', $response);