streaming-pcap-1.1.0: Stream packets via libpcap.

Copyright(c) Colin Woodbury 2018
LicenseBSD3
MaintainerColin Woodbury <colingw@gmail.com>
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

data Packet Source #

A pcap packet. Assumes nothing about the contents or structure of the bytes value.

Constructors

Packet 

Fields

Instances

data PktHdr :: * #

Constructors

PktHdr 

Fields

Instances

Eq PktHdr 

Methods

(==) :: PktHdr -> PktHdr -> Bool #

(/=) :: PktHdr -> PktHdr -> Bool #

Show PktHdr 

offline :: FilePath -> Stream (Of Packet) (ResourceT IO) () Source #

Read Packets from some file dump.

online :: String -> Int -> Bool -> Int64 -> Stream (Of Packet) IO () Source #

Read Packets from some network device. See openLive for a description of each argument.