[ 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.
bytes |
raw address data |
family |
the address family of |
a new InetAddress corresponding to |