Project

pcapz

0.0
No release in over 3 years
Low commit activity in last 3 years
Pure ruby packet capturing API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.16
~> 0.11.3
~> 10.0
~> 3.0

Runtime

~> 1.0.0
 Project Readme

Pcapz

Pure ruby network capture API

Installation

$ gem install pcapz

Usage

require "pcapz"

# start packet capture
cap = Pcapz.capture.new

# CTRL+C Exit
trap "SIGINT" do
  cap.stop!
end

cap.packets do |packet|
  # do something with packet
  puts packet.size
end

Supported Platforms

Currently this has only been implemented/tested on macOS and Linux.

License

The gem is available as open source under the terms of the MIT License.