hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.Addr

Documentation

data Addr Source #

Instances

Eq Addr Source # 

Methods

(==) :: Addr -> Addr -> Bool #

(/=) :: Addr -> Addr -> Bool #

Ord Addr Source # 

Methods

compare :: Addr -> Addr -> Ordering #

(<) :: Addr -> Addr -> Bool #

(<=) :: Addr -> Addr -> Bool #

(>) :: Addr -> Addr -> Bool #

(>=) :: Addr -> Addr -> Bool #

max :: Addr -> Addr -> Addr #

min :: Addr -> Addr -> Addr #

Show Addr Source # 

Methods

showsPrec :: Int -> Addr -> ShowS #

show :: Addr -> String #

showList :: [Addr] -> ShowS #

Generic Addr Source # 

Associated Types

type Rep Addr :: * -> * #

Methods

from :: Addr -> Rep Addr x #

to :: Rep Addr x -> Addr #

Hashable Addr Source # 

Methods

hashWithSalt :: Int -> Addr -> Int #

hash :: Addr -> Int #

NetworkAddr Addr Source # 
Network Addr Source # 
type Rep Addr Source # 
type Rep Addr = D1 (MetaData "Addr" "Hans.Addr.Types" "hans-3.0.2-GPIpvDF0acQKMmo8PFxkX0" False) (C1 (MetaCons "Addr4" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 IP4)))

class (Hashable addr, Show addr, Typeable addr, Eq addr, Generic addr) => NetworkAddr addr where Source #

Methods

toAddr :: addr -> Addr Source #

Forget what kind of address this is.

fromAddr :: Addr -> Maybe addr Source #

Try to remember what this opaque address was.

isWildcardAddr :: addr -> Bool Source #

Check to see if this address is the wildcard address.

wildcardAddr :: addr -> addr Source #

The wildcard address

isBroadcastAddr :: addr -> Bool Source #

Check to see if this address is the broadcast address.

broadcastAddr :: addr -> addr Source #

The broadcast address.