gSocketListen {RGtk2} | R Documentation

## gSocketListen

### Description

Marks the socket as a server socket, i.e. a socket that is used to accept incoming requests using `gSocketAccept`.

### Usage

    gSocketListen(object, .errwarn = TRUE)

### Arguments

``object`` | a `GSocket`.
`.errwarn` | Whether to issue a warning on error or fail silently

### Details

Before calling this the socket must be bound to a local address using `gSocketBind`.

To set the maximum amount of outstanding clients, use `gSocketSetListenBacklog`. Since 2.22

### Value

A list containing the following elements:

`retval` | [logical] `TRUE` on success, `FALSE` on error.
``error`` | `GError` for error reporting, or `NULL` to ignore.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]