W Wrapl, The Programming Language

Libraries:Gtk:Gio:GInetAddress

Types

T

Inherits from:

T represents an IPv4 or IPv6 internet address. Use Gtk.Gio.GResolver.LookupByName or Gtk.Gio.GResolver.LookupByNameAsync to look up the T for a hostname. Use Gtk.Gio.GResolver.LookupByAddress or Gtk.Gio.GResolver.LookupByAddressAsync to look up the hostname for a T.

To actually connect to a remote host, you will need a Gtk.Gio.GInetSocketAddress.T (which includes a T as well as a port number).



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



NewAny(family @ Gtk.Gio.GSocketFamily.T) : Gtk.Gio.GInetAddress.T

Creates a T for the "any" address (unassigned/"don't care") for family.

family the address family
Returns a new T corresponding to the "any" address for family.


NewFromBytes(bytes @ Std.Object.T, family @ Gtk.Gio.GSocketFamily.T) : Gtk.Gio.GInetAddress.T

Creates a new T from the given family and bytes. bytes should be 4 bytes for G_INET_ADDRESS_IPV4 and 16 bytes for G_INET_ADDRESS_IPV6.

bytes raw address data
family the address family of bytes
Returns a new T corresponding to family and bytes.


NewFromString(string @ Std.String.T) : Gtk.Gio.GInetAddress.T

Parses string as an IP address and creates a new T.

string a string representation of an IP address
Returns a new T corresponding to string, or NULL if string could not be parsed.


NewLoopback(family @ Gtk.Gio.GSocketFamily.T) : Gtk.Gio.GInetAddress.T

Creates a T for the loopback address for family.

family the address family
Returns a new T corresponding to the loopback address for family.


Methods

:GetFamily(self @ T) : Gtk.Gio.GSocketFamily.T

Gets address's family

address a T
Returns address's family


:GetIsAny(self @ T) : Std.Symbol.T

Tests whether address is the "any" address for its family.

address a T
Returns TRUE if address is the "any" address for its family.


:GetIsLinkLocal(self @ T) : Std.Symbol.T

Tests whether address is a link-local address (that is, if it identifies a host on a local network that is not connected to the Internet).

address a T
Returns TRUE if address is a link-local address.


:GetIsLoopback(self @ T) : Std.Symbol.T

Tests whether address is the loopback address for its family.

address a T
Returns TRUE if address is the loopback address for its family.


:GetIsMcGlobal(self @ T) : Std.Symbol.T

Tests whether address is a global multicast address.

address a T
Returns TRUE if address is a global multicast address.


:GetIsMcLinkLocal(self @ T) : Std.Symbol.T

Tests whether address is a link-local multicast address.

address a T
Returns TRUE if address is a link-local multicast address.


:GetIsMcNodeLocal(self @ T) : Std.Symbol.T

Tests whether address is a node-local multicast address.

address a T
Returns TRUE if address is a node-local multicast address.


:GetIsMcOrgLocal(self @ T) : Std.Symbol.T

Tests whether address is an organization-local multicast address.

address a T
Returns TRUE if address is an organization-local multicast address.


:GetIsMcSiteLocal(self @ T) : Std.Symbol.T

Tests whether address is a site-local multicast address.

address a T
Returns TRUE if address is a site-local multicast address.


:GetIsMulticast(self @ T) : Std.Symbol.T

Tests whether address is a multicast address.

address a T
Returns TRUE if address is a multicast address.


:GetIsSiteLocal(self @ T) : Std.Symbol.T

Tests whether address is a site-local address such as 10.0.0.1 (that is, the address identifies a host on a local network that can not be reached directly from the Internet, but which may have outgoing Internet connectivity via a NAT or firewall).

address a T
Returns TRUE if address is a site-local address.


:GetNativeSize(self @ T) : Std.Integer.SmallT

Gets the size of the native raw binary address for address. This is the size of the data that you get from ToBytes.

address a T
Returns the number of bytes used for the native version of address.


:Priv(self @ T) : Std.Object.T

:ToBytes(self @ T) : Std.Object.T

Gets the raw binary address data from address.

address a T
Returns a pointer to an internal array of the bytes in address, which should not be modified, stored, or freed. The size of this array can be gotten with GetNativeSize.


:ToString(self @ T) : Std.String.T

Converts address to string form.

address a T
Returns a representation of address as a string, which should be freed after use.


:setPriv(self @ T, value @ Std.Object.T) : Std.Object.T