Safe Haskell | None |
---|---|
Language | Haskell98 |
- pcapOpen :: String -> IO PcapHandle
- pcapSend :: PcapHandle -> ByteString -> IO ()
- pcapReceiveLoop :: PcapHandle -> EthernetHandle -> IO ()
Documentation
pcapOpen :: String -> IO PcapHandle Source
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