Debian Codegraph @

R/222_export_env.r

raw symbols SCIP
1 #' Sets of controls in pbdZMQ.
2 #'
3 #' These sets of controls are used to provide default values in this package.
4 #'
5 #' The elements of \code{.pbd_env$ZMQ.ST} are default values for socket types
6 #' as defined in `zmq.h' including \tabular{lcl}{ Elements \tab Value \tab
7 #' Usage \cr \code{PAIR} \tab 0L \tab socket type PAIR \cr \code{PUB} \tab 1L
8 #' \tab socket type PUB \cr \code{SUB} \tab 2L \tab socket type SUB \cr
9 #' \code{REQ} \tab 3L \tab socket type REQ \cr \code{REP} \tab 4L \tab socket
10 #' type REP \cr \code{DEALER} \tab 5L \tab socket type DEALER \cr \code{ROUTER}
11 #' \tab 6L \tab socket type ROUTER \cr \code{PULL} \tab 7L \tab socket type
12 #' PULL \cr \code{PUSH} \tab 8L \tab socket type PUSH \cr \code{XPUB} \tab 9L
13 #' \tab socket type XPUB \cr \code{XSUB} \tab 10L \tab socket type XSUB \cr
14 #' \code{STREAM} \tab 11L \tab socket type STREAM }
15 #'
16 #' The elements of \code{.pbd_env$ZMQ.SO} are default values for socket
17 #' options as defined in `zmq.h' including 60 different values, see
18 #' \code{.pbd_env$ZMQ.SO} and `zmq.h' for details.
19 #'
20 #' The elements of \code{.pbd_env$ZMQ.SR} are default values for send/recv
21 #' options as defined in `zmq.h' including \tabular{lcl}{ Elements \tab Value
22 #' \tab Usage \cr \code{BLOCK} \tab 0L \tab send/recv option BLOCK \cr
23 #' \code{DONTWAIT} \tab 1L \tab send/recv option DONTWAIT \cr \code{NOBLOCK}
24 #' \tab 1L \tab send/recv option NOBLOCK \cr \code{SNDMORE} \tab 2L \tab
25 #' send/recv option SNDMORE (not supported) }
26 #'
27 #' The elements of \code{.pbd_env$ZMQ.MC} are default values for warning and
28 #' stop controls in R. These are not the ZeroMQ's internal default values. They
29 #' are defined as \tabular{lcl}{ Elements \tab Value \tab Usage \cr
30 #' \code{warning.at.error} \tab TRUE \tab if warn at error \cr
31 #' \code{stop.at.error} \tab TRUE \tab if stop at error }
32 #'
33 #' @name ZMQ Control Environment
34 #' @aliases .pbd_env
35 #' @docType data
36 #' @format Objects contain several parameters for communicators and methods.
37 #' @author Wei-Chen Chen \email{wccsnow@@gmail.com}.
38 #' @references ZeroMQ/4.1.0 API Reference:
39 #' \url{http://api.zeromq.org/4-1:_start}
40 #'
41 #' Programming with Big Data in R Website: \url{https://pbdr.org/}
42 #' @keywords global variables
43 #' @seealso \code{\link{.zmqopt_init}()}.
44 #' @rdname a0_b_control
45 NULL
46
47 ### These are fake. These only be here for reference and to fool
48 ### ``R CMD check''.
49 ### The real one ``in practicee and runtime'' is initialed by the
50 ### .zmqopt_init() which is always called by .OnLoad() in "zzz.r" to avoid
51 ### overloaded and can be really accessed by users instead of sealed by R
52 ### after loaded.
53 ###
54 ### WCC: DO ``NOT'' remark ``NOR'' use the next.
55 # .pbd_env <- new.env()
56 # .pbd_env$ZMQ.MC <- ZMQ.MC()
57 # .pbd_env$ZMQ.SR <- ZMQ.SR()
58 # .pbd_env$ZMQ.SO <- ZMQ.SO()
59 # .pbd_env$ZMQ.ST <- ZMQ.ST()
60 # .pbd_env$ZMQ.PO <- ZMQ.PO()
61