gSocketSendTo {RGtk2} | R Documentation

## 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`` | a `GSocket`
``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

### Details

See `gSocketSend` for additional information. Since 2.22

### 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.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]