Lines Matching refs:packet

122      * The request ID exists in the off chance that a packet is sent out-of-order.  Of course, this library doesn't support
133 * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support
322 * in cases where the server chooses the packet length (such as
333 * Was the last packet due to the channels being closed or not?
555 $packet = Strings::packSSH2(
563 $this->send_binary_packet($packet);
575 $packet = Strings::packSSH2(
583 $this->send_binary_packet($packet);
601 . 'Got packet type: ' . $this->packet_type);
645 So what do you do if you have a client whose initial SSH_FXP_INIT packet says it implements v3 and
649 channel and reopen it with a new and updated SSH_FXP_INIT packet.
665 $packet = Strings::packSSH2('ss', 'version-select', "$ver");
666 $this->send_sftp_packet(NET_SFTP_EXTENDED, $packet);
670 . 'Got packet type: ' . $this->packet_type);
874 // should work on all SFTP versions since the only part of the SSH_FXP_NAME packet the following looks
883 . 'Got packet type: ' . $this->packet_type);
958 'Got packet type: ' . $this->packet_type);
1099 // since 'handle' is the last field in the SSH_FXP_HANDLE packet, we'll just remove the first four bytes that
1110 . 'Got packet type: ' . $this->packet_type);
1153 // final SSH_FXP_STATUS packet should tell us that, already.
1165 . 'Got packet type: ' . $this->packet_type);
1507 $packet = Strings::packSSH2('s', $filename);
1508 $this->send_sftp_packet($type, $packet);
1520 . 'Got packet type: ' . $this->packet_type);
1570 $packet = Strings::packSSH2('s', $filename);
1571 $packet .= $this->version >= 5 ?
1574 $packet .= $attr;
1576 $this->send_sftp_packet(NET_SFTP_OPEN, $packet);
1587 . 'Got packet type: ' . $this->packet_type);
1696 $packet = pack('Na*', strlen($filename), $filename);
1697 $this->send_sftp_packet(NET_SFTP_STAT, $packet);
1710 . 'Got packet type: ' . $this->packet_type);
1742 $packet = Strings::packSSH2('s', $filename);
1743 $packet .= $this->version >= 4 ?
1746 $this->send_sftp_packet(NET_SFTP_SETSTAT, $packet);
1758 . 'Got packet type: ' . $this->packet_type);
1810 $packet = Strings::packSSH2('s', $temp);
1811 $packet .= $this->version >= 4 ?
1814 $this->send_sftp_packet(NET_SFTP_SETSTAT, $packet);
1827 $packet = Strings::packSSH2('s', $path);
1828 $packet .= $this->version >= 4 ?
1831 $this->send_sftp_packet(NET_SFTP_SETSTAT, $packet);
1871 . 'Got packet type: ' . $this->packet_type);
1906 Changed the SYMLINK packet to be LINK and give it the ability to
1907 create hard links. Also change it's packet number because many
1913 $packet = Strings::packSSH2('ssC', $link, $target, 1);
1930 $packet = substr($this->server_identifier, 0, 15) == 'SSH-2.0-OpenSSH' ?
1934 $this->send_sftp_packet($type, $packet);
1939 . 'Got packet type: ' . $this->packet_type);
1999 . 'Got packet type: ' . $this->packet_type);
2038 . 'Got packet type: ' . $this->packet_type);
2145 $packet = Strings::packSSH2('s', $remote_file);
2146 $packet .= $this->version >= 5 ?
2149 $this->send_sftp_packet(NET_SFTP_OPEN, $packet);
2161 . 'Got packet type: ' . $this->packet_type);
2216 // make the SFTP packet be exactly the SFTP packet size by including the bytes in the NET_SFTP_WRITE packets "header"
2233 $packet = pack('Na*N3a*', strlen($handle), $handle, $subtemp / 4294967296, $subtemp, strlen($temp), $temp);
2235 $this->send_sftp_packet(NET_SFTP_WRITE, $packet, $j);
2290 * Sending an SSH_FXP_WRITE packet and immediately reading its response isn't as efficient as blindly sending out $i
2303 . 'Got packet type: ' . $this->packet_type);
2332 . 'Got packet type: ' . $this->packet_type);
2372 $packet = Strings::packSSH2('s', $remote_file);
2373 $packet .= $this->version >= 5 ?
2376 $this->send_sftp_packet(NET_SFTP_OPEN, $packet);
2388 . 'Got packet type: ' . $this->packet_type);
2419 $packet = Strings::packSSH2('sN3', $handle, $tempoffset / 4294967296, $tempoffset, $packet_size);
2421 $this->send_sftp_packet(NET_SFTP_READ, $packet, $i);
2428 $packet = null;
2481 . 'Got packet type: ' . $this->packet_type);
2543 . 'Got packet type: ' . $this->packet_type);
2717 $packet = Strings::packSSH2('sNN', $this->realpath($path), NET_SFTP_OPEN_READ, 0);
2718 $this->send_sftp_packet(NET_SFTP_OPEN, $packet);
2728 . 'Got packet type: ' . $this->packet_type);
2744 $packet = Strings::packSSH2('sNN', $this->realpath($path), NET_SFTP_OPEN_WRITE, 0);
2745 $this->send_sftp_packet(NET_SFTP_OPEN, $packet);
2755 . 'Got packet type: ' . $this->packet_type);
2977 $packet = Strings::packSSH2('ss', $oldname, $newname);
2988 $packet .= "\0\0\0\0";
2990 $this->send_sftp_packet(NET_SFTP_RENAME, $packet);
2995 . 'Got packet type: ' . $this->packet_type);
3225 * SFTPv3-specific longname field of the SSH_FXP_NAME packet. That's what this function does.
3269 // timeout after 10s. but for SFTP.php it's cumulative per packet
3272 $packet = $this->use_request_id ?
3277 $this->send_channel_packet(self::CHANNEL, $packet);
3308 * messages containing one SFTP packet.
3319 $temp = $this->requestBuffer[$request_id]['packet'];
3325 // timeout after 10s. but for SFTP.php it's cumulative per packet
3330 // SFTP packet length
3357 // SFTP packet type and data payload
3378 $length -= 5; // account for the request id and the packet type
3380 $length -= 1; // account for the packet type
3383 $packet = Strings::shift($this->packet_buffer, $length);
3388 $this->append_log($packet_type, $packet);
3394 'packet' => $packet
3399 return $packet;