| Copyright | (c) Colin Woodbury 2018 |
|---|---|
| License | BSD3 |
| Maintainer | Colin Woodbury <colingw@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Pcap.Streaming
Description
A streaming interface to the pcap Haskell library, which itself is a binding to libpcap. Humbly adapted from pcap-conduit by Austin Seipp.
- data Packet = Packet {
- header :: PktHdr
- bytes :: ByteString
- data PktHdr :: * = PktHdr {
- hdrSeconds :: !Word32
- hdrUseconds :: !Word32
- hdrCaptureLength :: !Word32
- hdrWireLength :: !Word32
- offline :: MonadResource m => FilePath -> Stream (Of Packet) m ()
- online :: MonadIO m => String -> Int -> Bool -> Int64 -> Stream (Of Packet) m ()
Documentation
Constructors
| Packet | |
Fields
| |
Constructors
| PktHdr | |
Fields
| |