HTTP-4000.4.1: A library for client-side HTTP

Copyright | See LICENSE file
License | BSD
Maintainer | Ganesh Sittampalam <ganesh@earth.li>
Stability | experimental
Portability | non-portable (not tested)
Safe Haskell | None
Language | Haskell98

Network.StreamSocket

Contents

- Orphan instances

Description

Socket Stream instance. Originally part of Gray's/Bringert's HTTP module.

- Changes by Robin Bate Boerop robin@bateboerop.name:
- Made dependencies explicit in import statements.
- Removed false dependencies in import statements.
- Created separate module for instance Stream Socket.
- Changes by Simon Foster:
- Split module up into to separate Network.[Stream,TCP,HTTP] modules

Synopsis

- handleSocketError :: Socket -> IOException -> IO (Result a)
- myrecv :: Socket -> Int -> IO String

# Documentation

handleSocketError :: Socket -> IOException -> IO (Result a) Source #

Exception handler for socket operations.

myrecv :: Socket -> Int -> IO String Source #

# Orphan instances

Stream Socket Source # |
Instance details Methods readLine :: Socket -> IO (Result String) Source # readBlock :: Socket -> Int -> IO (Result String) Source # writeBlock :: Socket -> String -> IO (Result ()) Source # close :: Socket -> IO () Source # closeOnEnd :: Socket -> Bool -> IO () Source #