gSocketReceiveFrom: gSocketReceiveFrom

Description Usage Arguments Details Value Author(s)

View source: R/gioFuncs.R

Description

Receive data (up to size bytes) from a socket.

Usage

1
gSocketReceiveFrom(object, size, cancellable = NULL, .errwarn = TRUE)

Arguments

object

a GSocket

size

the number of bytes you want to read from the socket

cancellable

a GCancellable or NULL

.errwarn

Whether to issue a warning on error or fail silently

Details

If address is non-NULL then address will be set equal to the source the received packet.

See gSocketReceive for additional information. Since 2.22

Value

A list containing the following elements:

retval

[integer] Number of bytes read, or -1 on error

address

a pointer to a GSocketAddress pointer, or NULL

buffer

a buffer to read data into (which should be at least size bytes long).

error

GError for error reporting, or NULL to ignore.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.