Gio.SocketAddress.new_from_native

function new_from_native(native: void, len: Number(gsize)): Gio.SocketAddress {
    // Gjs wrapper for g_socket_address_new_from_native()
}
  

Creates a Gio.SocketAddress subclass corresponding to the native struct sockaddr native.

Since 2.22

native

a pointer to a struct sockaddr

len

the size of the memory location pointed to by native

Returns

a new Gio.SocketAddress if native could successfully be converted, otherwise null