Class: Mu::Pcap::IOPair::Packet
- Inherits:
-
Mu::Pcap::IOPair
- Object
- Mu::Pcap::IOPair
- Mu::Pcap::IOPair::Packet
- Defined in:
- lib/mu/pcap/io_pair.rb
Instance Attribute Summary
Attributes inherited from Mu::Pcap::IOPair
Instance Method Summary collapse
-
#initialize ⇒ Packet
constructor
A new instance of Packet.
- #read ⇒ Object
Methods inherited from Mu::Pcap::IOPair
packet_pair, stream_pair, #write
Constructor Details
#initialize ⇒ Packet
Returns a new instance of Packet.
55 56 57 |
# File 'lib/mu/pcap/io_pair.rb', line 55 def initialize @read_queue = [] end |
Instance Method Details
#read ⇒ Object
59 60 61 |
# File 'lib/mu/pcap/io_pair.rb', line 59 def read @read_queue.shift end |