tests/address.R

suppressPackageStartupMessages(library(pbdZMQ))

addr = "notarealaddress.com.biz.google"
port = 8080

test = address(addr, port)
truth = paste0("tcp://", addr, ":", port)
stopifnot(identical(test, truth))

test = address(addr, transport="ipc")
truth = paste0("ipc://", addr)
stopifnot(identical(test, truth))

Try the pbdZMQ package in your browser

Any scripts or data that you put into this service are public.

pbdZMQ documentation built on Sept. 11, 2024, 5:36 p.m.