hans-2.4.0.0: IPv4 Network Stack

Safe HaskellNone
LanguageHaskell98

Hans.Address

Documentation

class (Ord a, Serialize a) => Address a where Source

Methods

addrSize :: a -> Word8 Source

toBits :: a -> [Bool] Source

Instances

class Address addr => Mask mask addr | addr -> mask, mask -> addr where Source

Methods

masksAddress :: mask -> addr -> Bool Source

withMask :: addr -> Int -> mask Source

getMaskComponents :: mask -> (addr, Int) Source

getMaskRange :: mask -> (addr, addr) Source

broadcastAddress :: mask -> addr Source

Instances

isBroadcast :: (Eq addr, Mask mask addr) => mask -> addr -> Bool Source