pbdZMQ (version 0.2-0)

Control Functions: Set controls in pbdZMQ

Description

Control functions

Usage

.zmqopt_get(main, sub = NULL, envir = .GlobalEnv)

.zmqopt_set(val, main, sub = NULL, envir = .GlobalEnv)

.zmqopt_init(envir = .GlobalEnv)

Arguments

main
a ZMQ control variable
sub
a ZMQ control sub-variable
envir
an environment where ZMQ controls locate
val
a value for the ZMQ control

Value

  • .zmqopt_get() returns the value of the ZMQ control.

    .zmqopt_set() sets the value to the ZMQ control.

    .zmqopt_init() initial the ZMQ control to .pbd_env at envir.

Details

.zmqopt_get() gets a ZMQ control.

.zmqopt_set() sets a ZMQ control.

.zmqopt_init() initials default ZMQ controls.

References

ZeroMQ/4.1.0 API Reference: http://api.zeromq.org/4-1:_start

Programming with Big Data in R Website: http://r-pbd.org/

See Also

.pbd_env.

Examples

Run this code
library(pbdZMQ, quietly = TRUE)

ls(.pbd_env)
rm(.pbd_env)
.zmqopt_init()
ls(.pbd_env)

.pbd_env$ZMQ.SR$BLOCK
.zmqopt_set(0L, "ZMQ.SR", "BLOCK")

Run the code above in your browser using DataCamp Workspace