Learn R Programming

RGtk2 (version 2.20.31)

gSocketListen: 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
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[logical] TRUE on success, FALSE on error.
error
GError for error reporting, or NULL to ignore.

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