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

gSocketAddressToNative

gSocketAddressToNative


Description

Converts a GSocketAddress to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().

Usage

gSocketAddressToNative(object, dest, destlen, .errwarn = TRUE)

Arguments

object

a GSocketAddress

dest

a pointer to a memory location that will contain the native structsockaddr.

destlen

the size of dest. Must be at least as large as gSocketAddressGetNativeSize.

.errwarn

Whether to issue a warning on error or fail silently

Details

If not enough space is availible, a G_IO_ERROR_NO_SPACE error is returned. If the address type is not known on the system then a G_IO_ERROR_NOT_SUPPORTED error is returned. Since 2.22

Value

A list containing the following elements:

retval

[logical] TRUE if dest was filled in, FALSE on error

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.