Debian Codegraph @

man/reap.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/socket.R
3 \name{reap}
4 \alias{reap}
5 \title{Reap}
6 \usage{
7 reap(con)
8 }
9 \arguments{
10 \item{con}{a Socket, Context, Listener or Dialer.}
11 }
12 \value{
13 An integer exit code (zero on success).
14 }
15 \description{
16 An alternative to \code{close} for Sockets, Contexts, Listeners, and Dialers
17 avoiding S3 method dispatch.
18 }
19 \details{
20 May be used on unclassed external pointers e.g. those created by
21 \code{\link[=.context]{.context()}}. Returns silently and does not warn or error, nor does it update
22 the state of object attributes.
23 }
24 \examples{
25 s <- socket("req")
26 listen(s)
27 dial(s)
28 ctx <- .context(s)
29
30 reap(ctx)
31 reap(s[["dialer"]][[1]])
32 reap(s[["listener"]][[1]])
33 reap(s)
34 reap(s)
35
36 }
37 \seealso{
38 \code{\link[=close]{close()}}
39 }