zyre2-0.1.1.0: Haskell zyre bindings for reliable group messaging over local area networks.
Safe HaskellNone
LanguageHaskell2010

Network.Zyre2.Configuration

Description

Provides configuration functions to handle setting up non-default options and toggles.

Synopsis

Documentation

setName :: ZyreContext ZCreated -> Text -> IO () Source #

Set the name of the context.

setHeader :: ZyreContext ZCreated -> Text -> Text -> IO () Source #

Set a header value. Headers are sent with every Enter message.

setVerbose :: ZyreContext ZCreated -> IO () Source #

Enable verbose mode, logging most actions zyre does.

setPort :: ZyreContext ZCreated -> Int -> IO () Source #

Set a specific port that zyre uses. By default zyre uses an ephemereal port.

setEvasiveTimeout :: ZyreContext ZCreated -> Int -> IO () Source #

Set the time in milliseconds for a node to be considered evasive. Default is 5000.

setSilentTimeout :: ZyreContext ZCreated -> Int -> IO () Source #

Set the time in milliseconds for a node to be considered silent. Default is 5000.

setExpiredTimeout :: ZyreContext ZCreated -> Int -> IO () Source #

Set the time in milliseconds for a node to be considered expired. Default is 30000.

setInterval :: ZyreContext ZCreated -> Int -> IO () Source #

Set the UDP beaconing interval. A node will instantly beacon on connecting, regardless of interval. Default is 1000.

setInterface :: ZyreContext ZCreated -> Text -> IO () Source #

Set network interface for UDP beacons. If you do not set this, CZMQ will choose an interface for you. On boxes with several interfaces you should specify which one you want to use, or strange things can happen.