hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Device.Types

Synopsis

Documentation

data DeviceConfig Source #

Static configuration data for creating a device.

Constructors

DeviceConfig 

Fields

txOffload :: HasDeviceConfig cfg => Getting r cfg ChecksumOffload Source #

The TX checksum offload config.

rxOffload :: HasDeviceConfig cfg => Getting r cfg ChecksumOffload Source #

The RX checksum offload config.

data Device Source #

Constructors

Device 

Fields

addStat :: Stat -> Int -> IO () Source #

data DeviceStats Source #

Constructors

DeviceStats 

updateDropped :: Getting Stat DeviceStats StatGroup -> DeviceStats -> IO () Source #

Add one to the count of dropped packets for this device.

updateError :: Getting Stat DeviceStats StatGroup -> DeviceStats -> IO () Source #

Add one to the error count for this device.

updateBytes :: Getting Stat DeviceStats StatGroup -> DeviceStats -> Int -> IO () Source #

Update information about bytes received.

updatePackets :: Getting Stat DeviceStats StatGroup -> DeviceStats -> IO () Source #

Update information about bytes received.