mpilquist / udp-replay

Example use of fs2-io to replay UDP datagrams from a pcap file
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Line does not compile #1

Open PhilAndrew opened 2 years ago

PhilAndrew commented 2 years ago

line 63 https://github.com/mpilquist/udp-replay/blob/main/udp-replay.scala#L63

.through(CaptureFile.udpDatagrams.toPipeByte)

It says .udpDatagrams does not exist on this class.

If I am using

val fs2Io = "co.fs2" % "fs2-io_3" % "3.2.11"
val fs2Protocols = "co.fs2" % "fs2-protocols_3" % "3.2.11"

Can you tell me how to fix?

mpilquist commented 2 years ago

The current code depends on an unreleased snapshot of fs2 which includes this PR: https://github.com/typelevel/fs2/pull/2954. This change was made in this commit: https://github.com/mpilquist/udp-replay/commit/e2b6694ffd1e60dbb78a7596570fde44e13c1add

You could either checkout that branch and publish fs2 locally or you could revert back a few commits on this repo -- something like git checkout e2b6694ffd1e60dbb78a7596570fde44e13c1add~1.

Let me know how it goes. I'm likely going to write up this example app in a blog post.