Learn R Programming

rzmq (version 0.9.15)

init.context: initailize zmq context and zmq socket

Description

initialize zmq context and zmq socket for to be used for further zmq operations.

Usage

init.context(threads=1L)
init.socket(context, socket.type)

Value

init.context returns a zmq context object. init.socket returns a zmq socket object.

Arguments

threads

number of threads for the context to use

context

a zmq context object.

socket.type

The ZMQ socket type requested e.g. ZMQ_REQ,ZMQ_REP,ZMQ_PULL,ZMQ_PUSH, etc.

Author

ZMQ was written by Martin Sustrik <sustrik@250bpm.com> and Martin Lucina <mato@kotelna.sk>. rzmq was written by Whit Armstrong.

References

http://www.zeromq.org http://api.zeromq.org http://zguide.zeromq.org/page:all

See Also

connect.socket,bind.socket,receive.socket,send.socket,poll.socket

Examples

Run this code
if (FALSE) {

library(rzmq)
context = init.context()
in.socket = init.socket(context,"ZMQ_PULL")
}

Run the code above in your browser using DataLab