hans-pcap-0.1.0.0: PCAP driver for HaNS

Safe HaskellNone

Hans.Device.Pcap

Synopsis

Documentation

pcapOpen :: String -> IO PcapHandleSource

Open device with pcap, will give info about the state, Unless the device is up it will throw errors later Be sure to use fesh mac, otherwise all might fail.

pcapSend :: PcapHandle -> ByteString -> IO ()Source

send to deviece

pcapReceiveLoop :: PcapHandle -> EthernetHandle -> IO ()Source

receive from it