hw-polysemy-0.2.14.11: Opinionated polysemy library
Safe HaskellSafe-Inferred
LanguageHaskell2010

HaskellWorks.IO.Network.Socket

Synopsis

Documentation

isPortOpen :: Int -> IO Bool Source #

Check if a TCP port is open

canConnect :: SockAddr -> IO () Source #

Check if it is possible to connect to a socket address

listenOn :: Int -> IO Socket Source #

Open a socket at the specified port for listening

allocateRandomPorts :: Int -> IO [Int] Source #

Allocate the specified number of random ports