Sha256: b331cdb4ff793d69da5f3275038a9b6be1f93c15bd33fbbb9fd076620f5827d2

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

# path setting magic for example directory only
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "bilbo"

# start a new capture instance on interface en0
cap = Bilbo::Capture.new(iface: 'en0') 
cap.snaplen = 1234 # lol

cap.start

cap.packets do |packet|
  # do something with the packet
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bilbo-1.0.1 examples/capture_example_4.rb
bilbo-1.0.0 examples/capture_example_4.rb