Class: PacketViaDMEM::Sent

Inherits:
Packet
  • Object
show all
Defined in:
lib/packet_via_dmem/sent.rb

Instance Attribute Summary

Attributes inherited from Packet

#header, #original, #packet, #popped, #type

Instance Method Summary collapse

Methods inherited from Packet

#pop, #pretty, #pretty_original, #pretty_packet, #to_s

Constructor Details

#initialize(packet, log) ⇒ Sent

Returns a new instance of Sent.



5
6
7
8
9
10
11
# File 'lib/packet_via_dmem/sent.rb', line 5

def initialize packet, log
  @log             = log
  @type            = :sent
  @original        = packet.dup
  @header          = Header::Sent.new
  @popped, @packet = parse_packet packet
end