reap {nanonext}R Documentation

Reap

Description

An alternative to close for Sockets, Contexts, Listeners and Dialers avoiding S3 method dispatch.

Usage

reap(con)

Arguments

con

a Socket, Context, Listener or Dialer.

Details

May be used on unclassed external pointers e.g. those created by .context. Returns silently and does not warn or error, nor does it update the state of object attributes.

Value

An integer exit code (zero on success).

See Also

close

Examples

s <- socket("req")
listen(s)
dial(s)
ctx <- .context(s)

reap(ctx)
reap(s[["dialer"]][[1]])
reap(s[["listener"]][[1]])
reap(s)
reap(s)


[Package nanonext version 1.1.1 Index]