eager-sockets-0.1: Socket operations with timeouts

Safe HaskellNone
LanguageHaskell2010

Network.Socket.Eager

Contents

Description

This module exports some basic functions to wait for some given milliseconds on Sockets to become available for reading or writing.

On top some higher-level functions to connect, send and recv with timeouts are provided.

The implementation is Unix-only and uses GHC-specific functionality from GHC.IO.Device and GHC.IO.FD. In particular, the basic wait functions are just exports of ready.

Synopsis

Documentation

newtype Milliseconds Source

Constructors

Milliseconds 

Fields

ms :: Int
 

data Descriptor Source

A Descriptor encapsulates an GHC.IO.FD.FD Most of the wait functions operate on this descriptor which is implicitly created in functions which only accept a Socket as parameter.

basic wait functions