Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- randomPort ∷ MonadIO m ⇒ MonadFail m ⇒ HostAddress → m PortNumber
- reserveRandomPort ∷ MonadFail m ⇒ MonadResource m ⇒ HostAddress → m (ReleaseKey, PortNumber)
- portInUse ∷ MonadIO m ⇒ HostAddress → PortNumber → m Bool
Documentation
randomPort ∷ MonadIO m ⇒ MonadFail m ⇒ HostAddress → m PortNumber Source #
Return a random available port on a specified host address
reserveRandomPort ∷ MonadFail m ⇒ MonadResource m ⇒ HostAddress → m (ReleaseKey, PortNumber) Source #