Debian Codegraph @

man/xx_rzmq_wrapper.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/rzmq_wrapper.r
3 \name{Wrapper Functions for rzmq}
4 \alias{Wrapper Functions for rzmq}
5 \alias{send.socket}
6 \alias{receive.socket}
7 \alias{init.context}
8 \alias{init.socket}
9 \alias{bind.socket}
10 \alias{connect.socket}
11 \title{All Wrapper Functions for rzmq}
12 \usage{
13 send.socket(
14 socket,
15 data,
16 send.more = FALSE,
17 serialize = TRUE,
18 serialversion = NULL
19 )
20
21 receive.socket(socket, unserialize = TRUE, dont.wait = FALSE)
22
23 init.context()
24
25 init.socket(context, socket.type)
26
27 bind.socket(socket, address)
28
29 connect.socket(socket, address)
30 }
31 \arguments{
32 \item{socket}{A ZMQ socket.}
33
34 \item{data}{An R object.}
35
36 \item{send.more}{Logical; will more messages be sent?}
37
38 \item{serialize, unserialize}{Logical; determines if serialize/unserialize should be called
39 on the sent/received data.}
40
41 \item{serialversion}{NULL or numeric; the workspace format version to use when serializing.
42 NULL specifies the current default version. The only other supported
43 values are 2 and 3.}
44
45 \item{dont.wait}{Logical; determines if reception is blocking.}
46
47 \item{context}{A ZMQ context.}
48
49 \item{socket.type}{The type of ZMQ socket as a string, of the form "ZMQ_type". Valid 'type'
50 values are PAIR, PUB, SUB, REQ, REP, DEALER, PULL, PUSH, XPUB, XSUB, and
51 STERAM.}
52
53 \item{address}{A valid address. See details.}
54 }
55 \description{
56 Wrapper functions for backwards compatibility with rzmq. See vignette
57 for examples.
58 }
59 \details{
60 \code{send.socket()}/\code{receive.socket()} send/receive messages over
61 a socket. These are simple wrappers around \code{zmq.msg.send()} and
62 \code{zmq.msg.receive()}, respectively.
63
64 \code{init.context()} creates a new ZeroMQ context. A useful wrapper
65 around \code{zmq.ctx.new()} which handles freeing memory for you, i.e.
66 \code{zmq.ctx.destroy()} will automatically be called for you.
67
68 \code{init.socket()} creates a ZeroMQ socket; serves as a high-level
69 binding for \code{zmq.socket()}, including handling freeing memory
70 automatically. See also \code{ZMQ.ST()}.
71
72 \code{bind.socket()}: see \code{zmq.bind()}.
73
74 \code{connect.socket()}: see \code{zmq.connect()}
75 }
76 \references{
77 ZeroMQ/4.1.0 API Reference:
78 \url{https://libzmq.readthedocs.io/en/zeromq4-1/}
79
80 Programming with Big Data in R Website: \url{https://pbdr.org/}
81 }
82 \author{
83 Wei-Chen Chen \email{[email protected]}.
84 }
85 \keyword{rzmq}