hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Network.Types

Synopsis

Documentation

pattern PROT_ICMP4 :: forall a. (Num a, Eq a) => a Source #

pattern PROT_TCP :: forall a. (Num a, Eq a) => a Source #

pattern PROT_UDP :: forall a. (Num a, Eq a) => a Source #

data RouteInfo addr Source #

Information about how to reach a specific destination address (source and next-hop addresses, and device to use).

Constructors

RouteInfo 

Fields

  • riSource :: !addr

    The source address to use when sending

  • riNext :: !addr

    The next-hop in the route

  • riDev :: !Device

    The device used for delivery

Instances

Functor RouteInfo Source # 

Methods

fmap :: (a -> b) -> RouteInfo a -> RouteInfo b #

(<$) :: a -> RouteInfo b -> RouteInfo a #

Eq addr => Eq (RouteInfo addr) Source # 

Methods

(==) :: RouteInfo addr -> RouteInfo addr -> Bool #

(/=) :: RouteInfo addr -> RouteInfo addr -> Bool #

HasDeviceConfig (RouteInfo addr) Source #