The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 77803
Line 1... Line 1...
1
% File src/library/base/man/socketSelect.Rd
1
% File src/library/base/man/socketSelect.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2020 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{socketSelect}
6
\name{socketSelect}
7
\alias{socketSelect}
7
\alias{socketSelect}
8
\title{Wait on Socket Connections}
8
\title{Wait on Socket Connections}
9
\usage{
9
\usage{
10
socketSelect(socklist, write = FALSE, timeout = NULL)
10
socketSelect(socklist, write = FALSE, timeout = NULL)
11
}
11
}
12
\arguments{
12
\arguments{
13
  \item{socklist}{list of open socket connections}
13
  \item{socklist}{list of open socket connections and server sockets.}
14
  \item{write}{logical.  If \code{TRUE} wait for corresponding socket to
14
  \item{write}{logical.  If \code{TRUE} wait for corresponding socket to
15
               become available for writing; otherwise wait for it to become
15
               become available for writing; otherwise wait for it to become
-
 
16
               available for reading or for accepting an incoming
16
               available for reading.}
17
               connection (server sockets).}
17
  \item{timeout}{numeric or \code{NULL}. Time in seconds to wait for a
18
  \item{timeout}{numeric or \code{NULL}. Time in seconds to wait for a
18
                 socket to become available; \code{NULL} means wait
19
                 socket to become available; \code{NULL} means wait
19
                 indefinitely.}
20
                 indefinitely.}
20
}
21
}
21
\description{
22
\description{
22
  Waits for the first of several socket connections to become available.
23
  Waits for the first of several socket connections and server sockets
-
 
24
  to become available.
23
}
25
}
24
\value{Logical the same length as \code{socklist} indicating
26
\value{Logical the same length as \code{socklist} indicating
25
  whether the corresponding socket connection is available for
27
  whether the corresponding socket connection is available for
26
  output or input, depending on the corresponding value of \code{write}.
28
  output or input, depending on the corresponding value of \code{write}.
-
 
29
  Server sockets can only become available for input.
27
}
30
}
28
\details{
31
\details{
29
  The values in \code{write} are recycled if necessary to make up a
32
  The values in \code{write} are recycled if necessary to make up a
30
  logical vector the same length as \code{socklist}. Socket connections
33
  logical vector the same length as \code{socklist}. Socket connections
31
  can appear more than once in \code{socklist}; this can be useful if
34
  can appear more than once in \code{socklist}; this can be useful if