| Safe Haskell | None |
|---|
Network.TFTP.UDPIO
Description
Buffered UDP IO utility module.
Documentation
A monad for UDP IO
Arguments
| :: Maybe String | Hostname where the local UDP port will be bound |
| -> Maybe String | Port where the local UDP port will be bound |
| -> UDPIO a | The action to run with a reader and a writer |
| -> IO a | Result of the action. |
Execute an action on a bound UDP port providing access to UDP IO via two functions that read and write data to/from UDP sockets. When the action returns, the socket is closed.