SocketAddress.newFromNative

gio.socket_address.SocketAddress newFromNative(void * native, size_t len)

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

Parameters

nativea pointer to a struct sockaddr
lenthe size of the memory location pointed to by native

Returns

a new #GSocketAddress if native could successfully

be converted, otherwise null