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.
Moduleio-streams-1.5.2.2Haskell2010
System.IO.Streams.Network
Converting network Sockets to streams.
- 2 values
- Packageio-streams-1.5.2.2
- Exports2
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceNetwork.hs
Sockets to Streams
2 declarationsvalue
socketToStreamsWithBufferSize :: Inthow large the receive buffer should be
-> Socketnetwork socket
-> IO (InputStream ByteString, OutputStream ByteString)
Converts a Socket to an InputStream / OutputStream pair, with
control over the size of the receive buffers. 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.