| MissingH-1.1.0.3: Large utility library | Source code | Contents | Index

Network.Utils

Portability | systems with networking
Stability | provisional
Maintainer | John Goerzen <jgoerzen@complete.org>

Description
This module provides various helpful utilities for dealing with networking Written by John Goerzen, jgoerzen@complete.org
Synopsis

niceSocketsDo :: IO a -> IO a
connectTCP :: HostName -> PortNumber -> IO Socket
connectTCPAddr :: SockAddr -> IO Socket
listenTCPAddr :: SockAddr -> Int -> IO Socket
showSockAddr :: SockAddr -> IO String

Documentation

niceSocketsDo :: IO a -> IO a | Source

Sets up the system for networking. Similar to the built-in withSocketsDo (and actually, calls it), but also sets the SIGPIPE handler so that signal is ignored.

Example:

     main = niceSocketsDo $ do { ... }

connectTCP :: HostName -> PortNumber -> IO Socket | Source

connectTCPAddr :: SockAddr -> IO Socket | Source

listenTCPAddr :: SockAddr -> Int -> IO Socket | Source

showSockAddr :: SockAddr -> IO String | Source

Produced by Haddock version 2.4.2