class Net::SFTP::Packet
A specialization of the Net::SSH::Buffer class, which simply auto-reads the type byte from the front of every packet it represents.
Attributes
The (intger) type of this packet. See Net::SFTP::Constants for all possible packet types.
Public Class Methods
Source
# File lib/net/sftp/packet.rb, line 15 def initialize(data) super @type = read_byte end