io-streams-1.0.2.1: Simple, composable, and easy-to-use stream I/O

Safe HaskellNone

System.IO.Streams.Network

Contents

Description

Converting network Sockets to streams.

Synopsis

Sockets to Streams

socketToStreams :: Socket -> IO (InputStream ByteString, OutputStream ByteString)Source

Converts a Socket to an InputStream / OutputStream pair. Note that, as is usually the case in io-streams, writing a Nothing to the generated OutputStream does not cause the underlying Socket to be closed.