hans-2.4.0.0: IPv4 Network Stack

Safe HaskellSafe-Inferred
LanguageHaskell98

Hans.Ports

Contents

Synopsis

Port Management

data PortManager i Source

Instances

Show i => Show (PortManager i) 

isUsed :: (Eq i, Ord i) => i -> PortManager i -> Bool Source

reserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i) Source

unreserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i) Source

nextPort :: (Eq i, Ord i, Show i) => PortManager i -> Maybe (i, PortManager i) Source