InetAddress.newFromBytes

gio.inet_address.InetAddress newFromBytes(ubyte[] bytes, gio.types.SocketFamily family)

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.

Parameters

bytesraw address data
familythe address family of bytes

Returns

a new #GInetAddress corresponding to family and bytes.

Free the returned object with gobject.object.ObjectWrap.unref.