Learn R Programming

RGtk2 (version 2.20.31)

gSocketSendTo: gSocketSendTo

Description

Tries to send size bytes from buffer to address. If address is NULL then the message is sent to the default receiver (set by gSocketConnect).

Usage

gSocketSendTo(object, address, buffer, size, cancellable = NULL, .errwarn = TRUE)

Arguments

object
address
a GSocketAddress, or NULL
buffer
the buffer containing the data to send.
size
the number of bytes to send
cancellable
a GCancellable or NULL
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[integer] Number of bytes written (which may be less than size), or -1 on error
error
GError for error reporting, or NULL to ignore.

Details

See gSocketSend for additional information. Since 2.22