InetAddress.from_bytes_with_ipv6_info


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.86" ) ]
public InetAddress.from_bytes_with_ipv6_info (uint8[] bytes, SocketFamily family, uint32 flowinfo, uint32 scope_id)

Creates a new [class@Gio.

InetAddress] from the given family, bytes and scope_id.

bytes must be 4 bytes for [enum@Gio.SocketFamily.IPV4] and 16 bytes for [enum@Gio.SocketFamily.IPV6].

Parameters:

bytes

raw address data

family

the address family of bytes

scope_id

the scope-id of the address

Returns:

a new internet address corresponding to family, bytes and scope_id