network-run-0.2.0: Simple network runner library

Safe HaskellNone
LanguageHaskell2010

Network.Run.UDP

Description

Simple functions to run UDP clients and servers.

Synopsis

Documentation

runUDPClient :: String -> String -> (Socket -> SockAddr -> IO a) -> IO a Source #

Running a UDP client with a socket. The client action takes a socket and server's socket address. They should be used with sendTo.

runUDPServer :: Maybe HostName -> ServiceName -> (Socket -> IO a) -> IO a Source #

Running a UDP server with an open socket.