Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gSocketReceiveFrom

gSocketReceiveFrom


Description

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

Usage

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

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.