hedgehog-extras-0.6.5.0: Supplemental library for hedgehog
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hedgehog.Extras.Stock.IO.Network.Port

Synopsis

Documentation

randomPortMonadIO m ⇒ MonadFail m ⇒ HostAddress → m PortNumber Source #

Return a random available port on a specified host address

reserveRandomPortMonadFail m ⇒ MonadResource m ⇒ HostAddress → m (ReleaseKey, PortNumber) Source #

portInUseMonadIO m ⇒ HostAddress → PortNumber → m Bool Source #

Check if a port is in use on a specified host address