The R Project SVN R

Rev

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

Rev 11393 Rev 15518
Line 1... Line 1...
1
\name{make.socket}
1
\name{make.socket}
-
 
2
\alias{make.socket}
-
 
3
\alias{print.socket}
2
\title{Create a Socket Connection}
4
\title{Create a Socket Connection}
3
\usage{
5
\usage{
4
make.socket(host = "localhost", port, fail = TRUE, server = FALSE)
6
make.socket(host = "localhost", port, fail = TRUE, server = FALSE)
5
print.socket(x, \dots)
-
 
6
}
7
}
7
\alias{make.socket}
-
 
8
\alias{print.socket}
-
 
9
\arguments{
8
\arguments{
10
  \item{host}{name of remote host}
9
  \item{host}{name of remote host}
11
  \item{port}{port to connect to/listen on}
10
  \item{port}{port to connect to/listen on}
12
  \item{fail}{failure to connect is an error?}
11
  \item{fail}{failure to connect is an error?}
13
  \item{server}{a server socket?}
12
  \item{server}{a server socket?}
14
  \item{x}{an object of class \code{"socket"}.}
-
 
15
}
13
}
16
\description{
14
\description{
17
  With \code{server = FALSE} attempts to open a client socket to the
15
  With \code{server = FALSE} attempts to open a client socket to the
18
  specified port and host. With \code{server = TRUE} listens on the
16
  specified port and host. With \code{server = TRUE} listens on the
19
  specified port for a connection and then returns a server socket. It is
17
  specified port for a connection and then returns a server socket. It is