~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to man/gSocketAccept.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\alias{gSocketAccept}
 
2
\name{gSocketAccept}
 
3
\title{gSocketAccept}
 
4
\description{Accept incoming connections on a connection-based socket. This removes
 
5
the first outstanding connection request from the listening socket and
 
6
creates a \code{\link{GSocket}} object for it.}
 
7
\usage{gSocketAccept(object, cancellable = NULL, .errwarn = TRUE)}
 
8
\arguments{
 
9
\item{\verb{object}}{a \code{\link{GSocket}}.}
 
10
\item{\verb{cancellable}}{a \code{\link{GCancellable}} or \code{NULL}}
 
11
\item{.errwarn}{Whether to issue a warning on error or fail silently}
 
12
}
 
13
\details{The \code{socket} must be bound to a local address with \code{\link{gSocketBind}} and
 
14
must be listening for incoming connections (\code{\link{gSocketListen}}).
 
15
  
 
16
If there are no outstanding connections then the operation will block
 
17
or return \code{G_IO_ERROR_WOULD_BLOCK} if non-blocking I/O is enabled.
 
18
To be notified of an incoming connection, wait for the \code{G_IO_IN} condition.
 
19
  Since 2.22}
 
20
\value{
 
21
A list containing the following elements:
 
22
\item{retval}{[\code{\link{GSocket}}]  a new \code{\link{GSocket}}, or \code{NULL} on error.}
 
23
\item{\verb{error}}{\code{\link{GError}} for error reporting, or \code{NULL} to ignore.}
 
24
}
 
25
\author{Derived by RGtkGen from GTK+ documentation}
 
26
\keyword{internal}