conduit-extra-1.3.6: Batteries included conduit: adapters for common libraries.
Safe Haskell None
Language Haskell2010

Data.Conduit.Network.Unix

Synopsis

Basic utilities

sourceSocket :: MonadIO m => Socket -> ConduitT i ByteString m () Source #

Stream data from the socket.

This function does not automatically close the socket.

Since 0.0.0

sinkSocket :: MonadIO m => Socket -> ConduitT ByteString o 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 Source #

The data passed to a Unix domain sockets Application .

Server

runUnixServer :: ServerSettingsUnix -> ( AppDataUnix -> IO ()) -> IO a Source #

Run an Application with the given settings. This function will create a new listening socket, accept connections on it, and spawn a new thread for each connection.

Client

runUnixClient :: ClientSettingsUnix -> ( AppDataUnix -> IO a) -> IO a Source #

Run an Application by connecting to the specified server.

Getters

Setters