worker_node.Rd
Initiate one of either worker or locator node.
worker_node(address = NULL, port = 0L, ..., verbose = FALSE)
locator_node(address = NULL, port = 0L, ..., verbose = FALSE)
character address for the communication node to be reachable by. Leave NULL
for localhost.
Integer port to bind to.
Arguments to pass on to methods
Logical, start verbose or not.
None; loops.
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (address = NULL, port = 0L, ..., verbose = FALSE)
{
options(chunknetVerbose = verbose)
orcv::start(address, port, threads = 1L)
init_function(...)
repeat {
event <- orcv::receive(keep_conn = TRUE)
handle(event)
log("...DONE")
}
}
#> function (address = NULL, port = 0L, ..., verbose = FALSE)
#> {
#> options(chunknetVerbose = verbose)
#> orcv::start(address, port, threads = 1L)
#> init_function(...)
#> repeat {
#> event <- orcv::receive(keep_conn = TRUE)
#> handle(event)
#> log("...DONE")
#> }
#> }
#> <environment: 0x5642fce80e78>