| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils.R |
| 3 |
\name{read_stdin} |
| 4 |
\alias{read_stdin} |
| 5 |
\title{Read stdin} |
| 6 |
\usage{ |
| 7 |
read_stdin() |
| 8 |
} |
| 9 |
\value{ |
| 10 |
a Socket. |
| 11 |
} |
| 12 |
\description{ |
| 13 |
Reads \code{stdin} from a background thread, allowing the stream to be accessed as |
| 14 |
messages from an NNG 'inproc' socket. As the read is blocking, it can only be |
| 15 |
used in non-interactive sessions. Closing \code{stdin} causes the background |
| 16 |
thread to exit and the socket connection to end. |
| 17 |
} |
| 18 |
\details{ |
| 19 |
A 'pull' protocol socket is returned, and hence can only be used with receive |
| 20 |
functions. |
| 21 |
} |