Learn R Programming

nanonext (version 1.3.0)

reap: Reap

Description

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

Usage

reap(con)

Value

An integer exit code (zero on success).

Arguments

con

a Socket, Context, Listener, Dialer or Pipe.

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.

See Also

Examples

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

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

Run the code above in your browser using DataLab