Class: TFTP::Packet::RRQ

Inherits:
Object
  • Object
show all
Defined in:
lib/tftp/tftp.rb

Instance Method Summary collapse

Instance Method Details

#to_strObject

Convert to binary string.



26
# File 'lib/tftp/tftp.rb', line 26

def to_str; "\x00\x01" + self.filename + "\x00" + self.mode.to_s + "\x00"; end