Class: NetConfGen::Packet::DATA
- Inherits:
-
Object
- Object
- NetConfGen::Packet::DATA
- Defined in:
- lib/netconfgen/netconfgen.rb
Instance Method Summary collapse
-
#last? ⇒ Boolean
Check if this is the last data packet for this session.
- #to_str ⇒ Object
Instance Method Details
#last? ⇒ Boolean
Check if this is the last data packet for this session.
204 |
# File 'lib/netconfgen/netconfgen.rb', line 204 def last?; self.data.length < 512; end |
#to_str ⇒ Object
202 |
# File 'lib/netconfgen/netconfgen.rb', line 202 def to_str; "\x00\x03" + [self.seq].pack('n') + self.data; end |