Class: NetConfGen::Packet::DATA

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

Instance Method Summary collapse

Instance Method Details

#last?Boolean

Check if this is the last data packet for this session.

Returns:

  • (Boolean)


204
# File 'lib/netconfgen/netconfgen.rb', line 204

def last?; self.data.length < 512; end

#to_strObject



202
# File 'lib/netconfgen/netconfgen.rb', line 202

def to_str; "\x00\x03" + [self.seq].pack('n') + self.data; end