Context Functions
From pbdZMQ v0.2-1
by Wei-Chen Chen
Context Functions
Context functions
- Keywords
- programming
Usage
zmq.ctx.new()zmq.ctx.destroy(ctx)
Arguments
- ctx
- a ZMQ context
Details
zmq.ctx.new()
initializes a ZMQ context for starting communication.
zmq.ctx.destroy()
terminates the context for stopping communication.
Value
zmq.ctx.new()
returns an R external pointer (ctx
) generated by ZMQ C API pointing to a context if successful, otherwise returns an RNULL
.zmq.ctx.destroy()
returns 0 if successful, otherwise returns -1 and setserrno
to eitherEFAULT
orEINTR
.
References
ZeroMQ/4.1.0 API Reference:
Programming with Big Data in R Website:
See Also
zmq.socket()
, zmq.close()
,
zmq.bind()
, zmq.connect()
.
Examples
library(pbdZMQ, quietly = TRUE)
context <- zmq.ctx.new()
zmq.ctx.destroy(context)
Community examples
Looks like there are no examples yet.