InetAddress.from_bytes


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.22" ) ]
public InetAddress.from_bytes (uint8[] bytes, SocketFamily family)

Creates a new InetAddress from the given family and bytes.

bytes should be 4 bytes for g_socket_family_ipv4 and 16 bytes for g_socket_family_ipv6.

Parameters:

bytes

raw address data

family

the address family of bytes

Returns:

a new InetAddress corresponding to family and bytes. Free the returned object with unref.