https://github.com/lhns/fs2-pcap
A library for capturing, crafting, and sending packets with fs2 using pcap4j
https://github.com/lhns/fs2-pcap
capture fs2 packet pcap pcap4j scala streaming
Last synced: over 1 year ago
JSON representation
A library for capturing, crafting, and sending packets with fs2 using pcap4j
- Host: GitHub
- URL: https://github.com/lhns/fs2-pcap
- Owner: lhns
- License: apache-2.0
- Created: 2020-12-21T20:16:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T00:24:03.000Z (over 1 year ago)
- Last Synced: 2025-03-16T22:24:35.760Z (over 1 year ago)
- Topics: capture, fs2, packet, pcap, pcap4j, scala, streaming
- Language: Scala
- Homepage:
- Size: 181 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fs2-pcap
[](https://github.com/LolHens/fs2-pcap/actions?query=workflow%3Atest)
[](https://github.com/LolHens/fs2-pcap/releases/latest)
[](https://search.maven.org/artifact/de.lolhens/fs2-pcap_2.13)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://scala-steward.org)
This project provides [fs2](https://github.com/typelevel/fs2) helper methods
for [pcap4j](https://github.com/kaitoy/pcap4j). Have a look at the [sample](https://github.com/LolHens/fs2-pcap/blob/main/sample/src/main/scala/de/lolhens/fs2/pcap/sample/Sample.scala) to get started.
## Usage
### build.sbt
```sbt
// use this snippet for cats-effect 2
libraryDependencies += "de.lolhens" %% "fs2-pcap" % "0.0.3"
// use this snippet for cats-effect 3
libraryDependencies += "de.lolhens" %% "fs2-pcap" % "0.1.0"
```
## License
This project uses the Apache 2.0 License. See the file called LICENSE.