conduit-extra-1.1.6: Batteries included conduit: adapters for common libraries.

Safe HaskellNone
LanguageHaskell98

Data.Conduit.Network.Unix

Contents

Synopsis

Basic utilities

sourceSocket :: MonadIO m => Socket -> Producer m ByteString Source

Stream data from the socket.

This function does not automatically close the socket.

Since 0.0.0

sinkSocket :: MonadIO m => Socket -> Consumer ByteString m () Source

Stream data to the socket.

This function does not automatically close the socket.

Since 0.0.0

Simple server/client interface

data AppDataUnix :: *

Instances

HasReadWrite AppDataUnix 

appSource :: (HasReadWrite ad, MonadIO m) => ad -> Producer m ByteString Source

appSink :: (HasReadWrite ad, MonadIO m) => ad -> Consumer ByteString m () Source

Server

data ServerSettingsUnix :: *

Instances

HasPath ServerSettingsUnix 
HasAfterBind ServerSettingsUnix 

Client

data ClientSettingsUnix :: *

Instances

Getters

getPath :: HasPath a => a -> FilePath

getAfterBind :: HasAfterBind a => a -> Socket -> IO ()

Setters

setPath :: HasPath a => FilePath -> a -> a

setAfterBind :: HasAfterBind a => (Socket -> IO ()) -> a -> a