from_native


Description:

[ CCode ( cname = "g_socket_address_new_from_native" ) ]
[ Version ( since = "2.22" ) ]
public static SocketAddress? from_native (void* native, size_t len)

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

Parameters:

native

a pointer to a struct sockaddr

len

the size of the memory location pointed to by native

Returns:

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