Package ch.bailu.gtk.gio
Klasse InetSocketAddress
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.SocketAddress
ch.bailu.gtk.gio.InetSocketAddress
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
ProxyAddress
An IPv4 or IPv6 socket address. That is, the combination of a
[class@Gio.InetAddress] and a port number.
In UNIX terms, `GInetSocketAddress` corresponds to a
[`struct sockaddr_in` or `struct sockaddr_in6`](man:sockaddr(3type)).
[class@Gio.InetAddress] and a port number.
In UNIX terms, `GInetSocketAddress` corresponds to a
[`struct sockaddr_in` or `struct sockaddr_in6`](man:sockaddr(3type)).
-
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
KonstruktorenKonstruktorBeschreibungInetSocketAddress
(InetAddress address, int port) Creates a new #GInetSocketAddress for @address and @port.InetSocketAddress
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceSocketConnectable
.Gets @address's #GInetAddress.static ClassHandler
int
Gets the `sin6_flowinfo` field from @address,
which must be an IPv6 address.static int
static long
static TypeSystem.TypeSize
int
getPort()
Gets @address's port.int
Gets the `sin6_scope_id` field from @address,
which must be an IPv6 address.static long
static TypeSystem.TypeSize
static InetSocketAddress
newFromStringInetSocketAddress
(Str address, int port) Creates a new #GInetSocketAddress for @address and @port.static InetSocketAddress
newFromStringInetSocketAddress
(String address, int port) Creates a new #GInetSocketAddress for @address and @port.Von Klasse geerbte Methoden ch.bailu.gtk.gio.SocketAddress
getFamily, getNativeSize, newFromNativeSocketAddress, toNative
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
-
InetSocketAddress
-
InetSocketAddress
Creates a new #GInetSocketAddress for @address and @port.- Parameter:
address
- a #GInetAddressport
- a port number
-
-
Methodendetails
-
getClassHandler
-
newFromStringInetSocketAddress
Creates a new #GInetSocketAddress for @address and @port.
If @address is an IPv6 address, it can also contain a scope ID
(separated from the address by a `%`).- Parameter:
address
- the string form of an IP addressport
- a port number- Gibt zurück:
- a new #GInetSocketAddress, or %NULL if @address cannot be parsed.
-
newFromStringInetSocketAddress
Creates a new #GInetSocketAddress for @address and @port.
If @address is an IPv6 address, it can also contain a scope ID
(separated from the address by a `%`).- Parameter:
address
- the string form of an IP addressport
- a port number- Gibt zurück:
- a new #GInetSocketAddress, or %NULL if @address cannot be parsed.
-
getAddress
Gets @address's #GInetAddress.- Gibt zurück:
- the #GInetAddress for @address, which must be g_object_ref()'d if it will be stored
-
getFlowinfo
public int getFlowinfo()Gets the `sin6_flowinfo` field from @address,
which must be an IPv6 address.- Gibt zurück:
- the flowinfo field
-
getPort
public int getPort()Gets @address's port.- Gibt zurück:
- the port for @address
-
getScopeId
public int getScopeId()Gets the `sin6_scope_id` field from @address,
which must be an IPv6 address.- Gibt zurück:
- the scope id field
-
asSocketConnectable
Implements interfaceSocketConnectable
. Call this to get access to interface functions.- Setzt außer Kraft:
asSocketConnectable
in KlasseSocketAddress
- Gibt zurück:
SocketConnectable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-