hyperdrive-0.1: a fast, trustworthy HTTP(s) server built

Safe HaskellNone

Network

Synopsis

Documentation

listenOnSource

Arguments

:: Int

port number

-> IO Socket 

start TCP listening on a port

socketReaderSource

Arguments

:: (Proxy p, MonadIO m) 
=> Socket

Socket to read data from

-> () -> Producer p ByteString m () 

Stream data from the socket.

FIXME: what should happen if recv raises an exception?

socketWriterSource

Arguments

:: (Proxy p, MonadIO m) 
=> Socket

Socket to write data to

-> () -> Consumer p ByteString m () 

Stream data to the socket.

FIXME: what should happen if sendAll raises an exception?