Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Icmp4Handle = Channel (Icmp4 ())
- runIcmp4Layer :: Icmp4Handle -> IP4Handle -> IO ()
- addIcmp4Handler :: Icmp4Handle -> Handler -> IO ()
- destUnreachable :: Icmp4Handle -> DestinationUnreachableCode -> IP4Header -> Int -> ByteString -> IO ()
Documentation
type Icmp4Handle = Channel (Icmp4 ()) Source
runIcmp4Layer :: Icmp4Handle -> IP4Handle -> IO () Source
addIcmp4Handler :: Icmp4Handle -> Handler -> IO () Source
Add a handler for Icmp4 messages that match the provided predicate.
destUnreachable :: Icmp4Handle -> DestinationUnreachableCode -> IP4Header -> Int -> ByteString -> IO () Source
Send a destination unreachable message to a host, with the given bytes as its body. Don't send the message, if the message was broadcast.