Sha256: 5777d2b8bc32a553b22cc5dc0da1f385201e86dd0d0815680043b83f5482420e

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

class EventMachine::SFlow::RawPacketHeader
  attr_accessor :protocol, :frame_length, :strip_count, :header
  
  def initialize data
    data.extend EventMachine::SFlow::BinaryString
    
    @protocol, @frame_length, @strip_count, length = data.unpack("NNNN")
    data.advance(16)
    
    @header = data
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
em-sflow-1.0.3 lib/em-sflow/packet/raw_packet_header.rb
em-sflow-1.0.2 lib/em-sflow/packet/raw_packet_header.rb
em-sflow-1.0.1 lib/em-sflow/packet/raw_packet_header.rb