| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/R_zmq_utility.r |
| 3 |
\name{Utility Functions} |
| 4 |
\alias{Utility Functions} |
| 5 |
\alias{zmq.strerror} |
| 6 |
\alias{zmq.version} |
| 7 |
\title{Utility Functions} |
| 8 |
\usage{ |
| 9 |
zmq.strerror(errno) |
| 10 |
|
| 11 |
zmq.version() |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{errno}{an integer for the error number} |
| 15 |
} |
| 16 |
\value{ |
| 17 |
\code{zmq.strerror()} returns an R string containing ZeroMQ error |
| 18 |
message. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
Utility functions |
| 22 |
} |
| 23 |
\details{ |
| 24 |
\code{zmq.strerror()} gets ZeroMQ error message string. |
| 25 |
|
| 26 |
\code{zmq.version()} print current ZeroMQ version. |
| 27 |
} |
| 28 |
\examples{ |
| 29 |
\dontrun{ |
| 30 |
library(pbdZMQ, quietly = TRUE) |
| 31 |
|
| 32 |
context <- zmq.ctx.new() |
| 33 |
zmq.ctx.destroy(context) |
| 34 |
zmq.strerror(0) |
| 35 |
|
| 36 |
zmq.ctx.destroy(context) # Error since context is free. |
| 37 |
zmq.strerror(14) |
| 38 |
} |
| 39 |
|
| 40 |
} |
| 41 |
\references{ |
| 42 |
ZeroMQ/4.1.0 API Reference: |
| 43 |
\url{https://libzmq.readthedocs.io/en/zeromq4-1/} |
| 44 |
|
| 45 |
Programming with Big Data in R Website: \url{https://pbdr.org/} |
| 46 |
} |
| 47 |
\seealso{ |
| 48 |
\code{\link{zmq.ctx.new}()}, \code{\link{zmq.ctx.destroy}()}, |
| 49 |
\code{\link{zmq.socket}()}, \code{\link{zmq.close}()}. |
| 50 |
} |
| 51 |
\author{ |
| 52 |
Wei-Chen Chen \email{[email protected]}. |
| 53 |
} |
| 54 |
\keyword{internal} |