init.message: create a message object.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/rzmq.R

Description

Create a ZeroMQ message object that can be sent multiple times

Usage

1
init.message(data, serialize=TRUE, xdr=.Platform$endian=="big")

Arguments

data

the R object to be sent

serialize

whether to call serialize before sending the data

xdr

passed directly to serialize command if serialize is requested

Value

a ZeroMQ message object as external pointer

Author(s)

ZMQ was written by Martin Sustrik <[email protected]> and Martin Lucina <[email protected]>. rzmq was written by Whit Armstrong.

References

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

See Also

send.message.object

Examples

1
2
3
4
5
6
7
8
## Not run: 

## remote execution server in rzmq
library(rzmq)
data = list(x=5)
msg = init.message(data)

## End(Not run)

armstrtw/rzmq documentation built on Aug. 3, 2019, 7:33 a.m.