Class: Mu::Pcap::IOPair::Packet

Inherits:
Mu::Pcap::IOPair show all
Defined in:
lib/mu/pcap/io_pair.rb

Instance Attribute Summary

Attributes inherited from Mu::Pcap::IOPair

#other, #read_queue

Instance Method Summary collapse

Methods inherited from Mu::Pcap::IOPair

packet_pair, stream_pair, #write

Constructor Details

#initializePacket

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

#readObject



59
60
61
# File 'lib/mu/pcap/io_pair.rb', line 59

def read 
    @read_queue.shift
end