InetAddress.newFromBytes

Creates a new #GInetAddress from the given family and bytes. bytes should be 4 bytes for gio.types.SocketFamily.Ipv4 and 16 bytes for gio.types.SocketFamily.Ipv6.

class InetAddress
static
newFromBytes

Parameters

bytes ubyte[]

raw address data

family gio.types.SocketFamily

the address family of bytes

Return Value

Type: gio.inet_address.InetAddress

a new #GInetAddress corresponding to family and bytes. Free the returned object with gobject.object.ObjectG.unref.