Sha256: 663725d7de33a5e93c3abe4e6d967770c77b25e08d645aaa6f3a8aacde392474

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

# Pcapz
> Pure ruby network capture API

## Installation

    $ gem install pcapz

## Usage

```ruby
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](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pcapz-1.0.1 README.md