Package ch.bailu.gtk.gio
Klasse InetAddress
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.InetAddress
- Alle implementierten Schnittstellen:
PointerInterface
`GInetAddress` represents an IPv4 or IPv6 internet address. Use
[method@Gio.Resolver.lookup_by_name] or
[method@Gio.Resolver.lookup_by_name_async] to look up the `GInetAddress` for
a hostname. Use [method@Gio.Resolver.lookup_by_address] or
[method@Gio.Resolver.lookup_by_address_async] to look up the hostname for a
`GInetAddress`.
To actually connect to a remote host, you will need a
[class@Gio.InetSocketAddress] (which includes a `GInetAddress` as well as a
port number).
[method@Gio.Resolver.lookup_by_name] or
[method@Gio.Resolver.lookup_by_name_async] to look up the `GInetAddress` for
a hostname. Use [method@Gio.Resolver.lookup_by_address] or
[method@Gio.Resolver.lookup_by_address_async] to look up the hostname for a
`GInetAddress`.
To actually connect to a remote host, you will need a
[class@Gio.InetSocketAddress] (which includes a `GInetAddress` as well as a
port number).
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
equal
(InetAddress other_address) Checks if two #GInetAddress instances are equal, e.g. the same address.static ClassHandler
int
Gets @address's familystatic int
boolean
getIsAny()
Tests whether @address is the "any" address for its family.boolean
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).boolean
Tests whether @address is the loopback address for its family.boolean
Tests whether @address is a global multicast address.boolean
Tests whether @address is a link-local multicast address.boolean
Tests whether @address is a node-local multicast address.boolean
Tests whether @address is an organization-local multicast address.boolean
Tests whether @address is a site-local multicast address.boolean
Tests whether @address is a multicast address.boolean
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).long
Gets the size of the native raw binary address for @address.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static InetAddress
newAnyInetAddress
(int family) Creates a #GInetAddress for the "any" address (unassigned/"don't
care") for @family.static InetAddress
newFromStringInetAddress
(Str string) Parses @string as an IP address and creates a new #GInetAddress.static InetAddress
newFromStringInetAddress
(String string) Parses @string as an IP address and creates a new #GInetAddress.static InetAddress
newLoopbackInetAddress
(int family) Creates a #GInetAddress for the loopback address for @family.toStr()
Converts @address to string form.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
InetAddress
-
-
Methodendetails
-
getClassHandler
-
newAnyInetAddress
Creates a #GInetAddress for the "any" address (unassigned/"don't
care") for @family.- Parameter:
family
- the address family- Gibt zurück:
- a new #GInetAddress corresponding to the "any" address for @family. Free the returned object with g_object_unref().
-
newFromStringInetAddress
Parses @string as an IP address and creates a new #GInetAddress.- Parameter:
string
- a string representation of an IP address- Gibt zurück:
- a new #GInetAddress corresponding to @string, or %NULL if @string could not be parsed. Free the returned object with g_object_unref().
-
newFromStringInetAddress
Parses @string as an IP address and creates a new #GInetAddress.- Parameter:
string
- a string representation of an IP address- Gibt zurück:
- a new #GInetAddress corresponding to @string, or %NULL if @string could not be parsed. Free the returned object with g_object_unref().
-
newLoopbackInetAddress
Creates a #GInetAddress for the loopback address for @family.- Parameter:
family
- the address family- Gibt zurück:
- a new #GInetAddress corresponding to the loopback address for @family. Free the returned object with g_object_unref().
-
equal
Checks if two #GInetAddress instances are equal, e.g. the same address.- Parameter:
other_address
- Another #GInetAddress.- Gibt zurück:
- %TRUE if @address and @other_address are equal, %FALSE otherwise.
-
getFamily
public int getFamily()Gets @address's family- Gibt zurück:
- @address's family
-
getIsAny
public boolean getIsAny()Tests whether @address is the "any" address for its family.- Gibt zurück:
- %TRUE if @address is the "any" address for its family.
-
getIsLinkLocal
public boolean getIsLinkLocal()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).- Gibt zurück:
- %TRUE if @address is a link-local address.
-
getIsLoopback
public boolean getIsLoopback()Tests whether @address is the loopback address for its family.- Gibt zurück:
- %TRUE if @address is the loopback address for its family.
-
getIsMcGlobal
public boolean getIsMcGlobal()Tests whether @address is a global multicast address.- Gibt zurück:
- %TRUE if @address is a global multicast address.
-
getIsMcLinkLocal
public boolean getIsMcLinkLocal()Tests whether @address is a link-local multicast address.- Gibt zurück:
- %TRUE if @address is a link-local multicast address.
-
getIsMcNodeLocal
public boolean getIsMcNodeLocal()Tests whether @address is a node-local multicast address.- Gibt zurück:
- %TRUE if @address is a node-local multicast address.
-
getIsMcOrgLocal
public boolean getIsMcOrgLocal()Tests whether @address is an organization-local multicast address.- Gibt zurück:
- %TRUE if @address is an organization-local multicast address.
-
getIsMcSiteLocal
public boolean getIsMcSiteLocal()Tests whether @address is a site-local multicast address.- Gibt zurück:
- %TRUE if @address is a site-local multicast address.
-
getIsMulticast
public boolean getIsMulticast()Tests whether @address is a multicast address.- Gibt zurück:
- %TRUE if @address is a multicast address.
-
getIsSiteLocal
public boolean getIsSiteLocal()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).- Gibt zurück:
- %TRUE if @address is a site-local address.
-
getNativeSize
public long getNativeSize()Gets the size of the native raw binary address for @address. This
is the size of the data that you get from g_inet_address_to_bytes().- Gibt zurück:
- the number of bytes used for the native version of @address.
-
toStr
Converts @address to string form.- Gibt zurück:
- a representation of @address as a string, which should be freed after use.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-