daemons-0.3.0: Daemons in Haskell made fun and easy
Control.Pipe.C3
Contents
commandSender :: (Serialize a, Serialize b) => a -> Handler (Maybe b) Source #
Send a single command over the outgoing pipe and wait for a response. If the incoming pipe is closed before a response arrives, returns Nothing.
Nothing
commandReceiver :: (Serialize a, Serialize b) => (a -> IO b) -> Handler () Source #
Wait for commands on the incoming pipe, handle them, and send the reponses over the outgoing pipe.