Package org.gnome.gio

Class InetAddress

java.lang.Object
All Implemented Interfaces:
Proxy

@Generated("io.github.jwharm.JavaGI") public class InetAddress extends GObject
GInetAddress represents an IPv4 or IPv6 internet address. Use Resolver.lookupByName(java.lang.String, org.gnome.gio.Cancellable) or Resolver.lookupByNameAsync(java.lang.String, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) to look up the GInetAddress for a hostname. Use Resolver.lookupByAddress(org.gnome.gio.InetAddress, org.gnome.gio.Cancellable) or Resolver.lookupByAddressAsync(org.gnome.gio.InetAddress, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) to look up the hostname for a GInetAddress.

To actually connect to a remote host, you will need a InetSocketAddress (which includes a GInetAddress as well as a port number).