Safe Haskell | None |
---|---|
Language | Haskell98 |
- type EthernetHandle = Channel (Eth ())
- runEthernetLayer :: EthernetHandle -> IO ()
- type Tx = ByteString -> IO ()
- type Rx = EthernetHandle -> IO ()
- sendEthernet :: EthernetHandle -> EthernetFrame -> ByteString -> IO ()
- queueEthernet :: EthernetHandle -> ByteString -> IO ()
- addEthernetDevice :: EthernetHandle -> Mac -> Tx -> Rx -> IO ()
- removeEthernetDevice :: EthernetHandle -> Mac -> IO ()
- addEthernetHandler :: EthernetHandle -> EtherType -> Handler -> IO ()
- removeEthernetHandler :: EthernetHandle -> EtherType -> IO ()
- startEthernetDevice :: EthernetHandle -> Mac -> IO ()
- stopEthernetDevice :: EthernetHandle -> Mac -> IO ()
Documentation
type EthernetHandle = Channel (Eth ()) Source
runEthernetLayer :: EthernetHandle -> IO () Source
Run the ethernet layer.
External Interface
type Tx = ByteString -> IO () Source
type Rx = EthernetHandle -> IO () Source
sendEthernet :: EthernetHandle -> EthernetFrame -> ByteString -> IO () Source
queueEthernet :: EthernetHandle -> ByteString -> IO () Source
addEthernetDevice :: EthernetHandle -> Mac -> Tx -> Rx -> IO () Source
removeEthernetDevice :: EthernetHandle -> Mac -> IO () Source
addEthernetHandler :: EthernetHandle -> EtherType -> Handler -> IO () Source
removeEthernetHandler :: EthernetHandle -> EtherType -> IO () Source
startEthernetDevice :: EthernetHandle -> Mac -> IO () Source
stopEthernetDevice :: EthernetHandle -> Mac -> IO () Source