SocketAddress.newFromNative

Creates a #GSocketAddress subclass corresponding to the native struct sockaddr native.

class SocketAddress
static
newFromNative
(
void* native
,
size_t len
)

Parameters

native void*

a pointer to a struct sockaddr

len size_t

the size of the memory location pointed to by native

Return Value

Type: gio.socket_address.SocketAddress

a new #GSocketAddress if native could successfully be converted, otherwise null