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)}
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}
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}}).
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.
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.}
25
\author{Derived by RGtkGen from GTK+ documentation}