Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
HaskellWorks.IO.Network
Synopsis
- doesNamedPipeExist :: FilePath -> IO Bool
- 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 #
portInUse :: MonadIO m => HostAddress -> PortNumber -> m Bool Source #
Check if a port is in use on a specified host address