MissingH-1.2.0.2: Large utility library

Portabilitysystems with networking
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Safe HaskellNone

Network.Utils

Description

This module provides various helpful utilities for dealing with networking

Written by John Goerzen, jgoerzen@complete.org

Synopsis

Documentation

niceSocketsDo :: IO a -> IO aSource

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 SocketSource

connectTCPAddr :: SockAddr -> IO SocketSource

listenTCPAddr :: SockAddr -> Int -> IO SocketSource