-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple network runner library -- -- Simple functions to run network clients and servers. @package network-run @version 0.2.1 -- | Simple functions to run TCP clients and servers. module Network.Run.TCP -- | Running a TCP client with a connected socket. runTCPClient :: HostName -> ServiceName -> (Socket -> IO a) -> IO a -- | Running a TCP server with an accepted socket and its peer name. runTCPServer :: Maybe HostName -> ServiceName -> (Socket -> IO a) -> IO a -- | Simple functions to run UDP clients and servers. module Network.Run.UDP -- | Running a UDP client with a socket. The client action takes a socket -- and server's socket address. They should be used with sendTo. runUDPClient :: HostName -> ServiceName -> (Socket -> SockAddr -> IO a) -> IO a -- | Running a UDP server with an open socket. runUDPServer :: Maybe HostName -> ServiceName -> (Socket -> IO a) -> IO a