Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides configuration functions to handle setting up non-default options and toggles.
Synopsis
- setName :: ZyreContext ZCreated -> Text -> IO ()
- setHeader :: ZyreContext ZCreated -> Text -> Text -> IO ()
- setVerbose :: ZyreContext ZCreated -> IO ()
- setPort :: ZyreContext ZCreated -> Int -> IO ()
- setEvasiveTimeout :: ZyreContext ZCreated -> Int -> IO ()
- setSilentTimeout :: ZyreContext ZCreated -> Int -> IO ()
- setExpiredTimeout :: ZyreContext ZCreated -> Int -> IO ()
- setInterval :: ZyreContext ZCreated -> Int -> IO ()
- setInterface :: ZyreContext ZCreated -> Text -> IO ()
Documentation
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.