Lines Matching defs:response

550         $response = $this->open_channel(self::CHANNEL, true);
551 if ($response === true && $this->isTimeout()) {
567 $response = $this->get_channel_packet(self::CHANNEL, true);
568 if ($response === false) {
587 $response = $this->get_channel_packet(self::CHANNEL, true);
588 if ($response === false) {
591 } elseif ($response === true && $this->isTimeout()) {
598 $response = $this->get_sftp_packet();
606 list($this->defaultVersion) = Strings::unpackSSH2('N', $response);
607 while (!empty($response)) {
608 list($key, $value) = Strings::unpackSSH2('ss', $response);
642 server MAY send a status response describing the failure, but MUST then close the channel without
667 $response = $this->get_sftp_packet();
672 list($status) = Strings::unpackSSH2('N', $response);
674 $this->logError($response, $status);
798 * @param string $response
801 private function logError($response, $status = -1)
804 list($status) = Strings::unpackSSH2('N', $response);
810 list($message) = Strings::unpackSSH2('s', $response);
870 $response = $this->get_sftp_packet();
876 list(, $filename) = Strings::unpackSSH2('Ns', $response);
879 $this->logError($response);
948 $response = $this->get_sftp_packet();
951 $handle = substr($response, 4);
954 $this->logError($response);
1095 $response = $this->get_sftp_packet();
1101 $handle = substr($response, 4);
1105 list($status) = Strings::unpackSSH2('N', $response);
1106 $this->logError($response, $status);
1118 // why multiple SSH_FXP_READDIR packets would be sent when the response to a single one can span arbitrarily many
1122 $response = $this->get_sftp_packet();
1125 list($count) = Strings::unpackSSH2('N', $response);
1127 list($shortname) = Strings::unpackSSH2('s', $response);
1131 list($longname) = Strings::unpackSSH2('s', $response);
1133 $attributes = $this->parseAttributes($response);
1157 list($status) = Strings::unpackSSH2('N', $response);
1159 $this->logError($response, $status);
1510 $response = $this->get_sftp_packet();
1513 return $this->parseAttributes($response);
1515 $this->logError($response);
1578 $response = $this->get_sftp_packet();
1581 return $this->close_handle(substr($response, 4));
1583 $this->logError($response);
1699 $response = $this->get_sftp_packet();
1702 $attrs = $this->parseAttributes($response);
1705 $this->logError($response);
1750 response will be returned, but yet some of the attributes may be have been successfully modified. If possible,
1755 $response = $this->get_sftp_packet();
1761 list($status) = Strings::unpackSSH2('N', $response);
1763 $this->logError($response, $status);
1862 $response = $this->get_sftp_packet();
1867 $this->logError($response);
1874 list($count) = Strings::unpackSSH2('N', $response);
1880 list($filename) = Strings::unpackSSH2('s', $response);
1936 $response = $this->get_sftp_packet();
1942 list($status) = Strings::unpackSSH2('N', $response);
1944 $this->logError($response, $status);
1996 $response = $this->get_sftp_packet();
2002 list($status) = Strings::unpackSSH2('N', $response);
2004 $this->logError($response, $status);
2035 $response = $this->get_sftp_packet();
2041 list($status) = Strings::unpackSSH2('N', $response);
2044 $this->logError($response, $status);
2151 $response = $this->get_sftp_packet();
2154 $handle = substr($response, 4);
2157 $this->logError($response);
2290 * Sending an SSH_FXP_WRITE packet and immediately reading its response isn't as efficient as blindly sending out $i
2300 $response = $this->get_sftp_packet();
2306 list($status) = Strings::unpackSSH2('N', $response);
2308 $this->logError($response, $status);
2329 $response = $this->get_sftp_packet();
2335 list($status) = Strings::unpackSSH2('N', $response);
2337 $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;
2540 $response = $this->get_sftp_packet();
2547 list($status) = Strings::unpackSSH2('N', $response);
2549 $this->logError($response, $status);
2720 $response = $this->get_sftp_packet();
2747 $response = $this->get_sftp_packet();
2992 $response = $this->get_sftp_packet();
2999 list($status) = Strings::unpackSSH2('N', $response);
3001 $this->logError($response, $status);
3021 * @param string $response
3024 private function parseTime($key, $flags, &$response)
3027 list($attr[$key]) = Strings::unpackSSH2('Q', $response);
3029 list($attr[$key . '-nseconds']) = Strings::unpackSSH2('N', $response);
3039 * @param string $response
3042 protected function parseAttributes(&$response)
3045 list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
3047 list($flags) = Strings::unpackSSH2('N', $response);
3089 list($attr['size']) = Strings::unpackSSH2('Q', $response);
3092 list($attr['uid'], $attr['gid']) = Strings::unpackSSH2('NN', $response);
3095 list($attr['mode']) = Strings::unpackSSH2('N', $response);
3103 $attr += $this->parseTime('atime', $flags, $response);
3106 list($attr['atime'], $attr['mtime']) = Strings::unpackSSH2('NN', $response);
3109 $attr += $this->parseTime('createtime', $flags, $response);
3112 $attr += $this->parseTime('mtime', $flags, $response);
3118 list($count) = Strings::unpackSSH2('N', $response);
3124 list($attr['owner'], $attr['$group']) = Strings::unpackSSH2('ss', $response);
3134 list($attrib_bits, $attrib_bits_valid) = Strings::unpackSSH2('N2', $response);
3143 list($attr['allocation-size']) = Strings::unpackSSH2('Q', $response);
3149 list($text_hint) = Strings::unpackSSH2('C', $response);
3154 list($attr['mime-type']) = Strings::unpackSSH2('s', $response);
3158 list($attr['link-count']) = Strings::unpackSSH2('N', $response);
3162 list($attr['untranslated-name']) = Strings::unpackSSH2('s', $response);
3167 $attr += $this->parseTime('ctime', $flags, $response);
3170 list($count) = Strings::unpackSSH2('N', $response);
3172 list($key, $value) = Strings::unpackSSH2('ss', $response);