Sha256: 4d898cd61e76f003a3bcebf12c7fa526a19b33df77a3e7af140d88d734519427

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

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

# start a new capture instance
cap = Bilbo::Capture.new

# start the capture, optional block
cap.start 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.rb
bilbo-1.0.0 examples/capture_example.rb