patterns-0.1.1: Common patterns in message-oriented applications

Portabilitynon-portable
Stabilityexperimental
Safe HaskellNone

Network.Mom.Patterns.Broker.Server

Description

Majordomo Server

Synopsis

Documentation

withServer :: Context -> Service -> Msec -> String -> OnError_ -> Conduit_ -> Control a -> IO aSource

Start a server as a background process

  • Context - The zeromq context
  • Service - Service name; the service name is used to register at the broker.
  • Msec - Heartbeat in Milliseconds; must be synchronised with the broker heartbeat
  • String - The address to link to
  • OnError_ - Error handler
  • Conduit_ - The application-defined stream transformer; the conduit receives the request as input stream and should create the output stream that is internally sent back to the client
  • Control a - Control action