class TFTP::Packet::DATA
Public Instance Methods
last?()
click to toggle source
Check if this is the last data packet for this session.
# File lib/tftp/tftp.rb, line 40 def last?; self.data.length < 512; end
to_str()
click to toggle source
# File lib/tftp/tftp.rb, line 38 def to_str; "\x00\x03" + [self.seq].pack('n') + self.data; end