Package ch.bailu.gtk.gio
Klasse NetworkService
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.NetworkService
- Alle implementierten Schnittstellen:
PointerInterface
Like [class@Gio.NetworkAddress] does with hostnames, `GNetworkService`
provides an easy way to resolve a SRV record, and then attempt to
connect to one of the hosts that implements that service, handling
service priority/weighting, multiple IP addresses, and multiple
address families.
See [struct@Gio.SrvTarget] for more information about SRV records, and see
[iface@Gio.SocketConnectable] for an example of using the connectable
interface.
provides an easy way to resolve a SRV record, and then attempt to
connect to one of the hosts that implements that service, handling
service priority/weighting, multiple IP addresses, and multiple
address families.
See [struct@Gio.SrvTarget] for more information about SRV records, and see
[iface@Gio.SocketConnectable] for an example of using the connectable
interface.
-
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
KonstruktorenKonstruktorBeschreibungNetworkService
(PointerContainer pointer) NetworkService
(Str service, Str protocol, Str domain) Creates a new #GNetworkService representing the given @service,
@protocol, and @domain.NetworkService
(String service, String protocol, String domain) Creates a new #GNetworkService representing the given @service,
@protocol, and @domain. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceSocketConnectable
.static ClassHandler
Gets the domain that @srv serves.static int
static long
static TypeSystem.TypeSize
Gets @srv's protocol name (eg, "tcp").Gets the URI scheme used to resolve proxies.Gets @srv's service name (eg, "ldap").static long
static TypeSystem.TypeSize
void
Set's the URI scheme used to resolve proxies.void
Set's the URI scheme used to resolve proxies.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
-
NetworkService
-
NetworkService
Creates a new #GNetworkService representing the given @service,
@protocol, and @domain. This will initially be unresolved; use the
#GSocketConnectable interface to resolve it.- Parameter:
service
- the service type to look up (eg, "ldap")protocol
- the networking protocol to use for @service (eg, "tcp")domain
- the DNS domain to look up the service in
-
NetworkService
Creates a new #GNetworkService representing the given @service,
@protocol, and @domain. This will initially be unresolved; use the
#GSocketConnectable interface to resolve it.- Parameter:
service
- the service type to look up (eg, "ldap")protocol
- the networking protocol to use for @service (eg, "tcp")domain
- the DNS domain to look up the service in
-
-
Methodendetails
-
getClassHandler
-
getDomain
Gets the domain that @srv serves. This might be either UTF-8 or
ASCII-encoded, depending on what @srv was created with.- Gibt zurück:
- @srv's domain name
-
getProtocol
Gets @srv's protocol name (eg, "tcp").- Gibt zurück:
- @srv's protocol name
-
getScheme
Gets the URI scheme used to resolve proxies. By default, the service name
is used as scheme.- Gibt zurück:
- @srv's scheme name
-
getService
Gets @srv's service name (eg, "ldap").- Gibt zurück:
- @srv's service name
-
setScheme
Set's the URI scheme used to resolve proxies. By default, the service name
is used as scheme.- Parameter:
scheme
- a URI scheme
-
setScheme
Set's the URI scheme used to resolve proxies. By default, the service name
is used as scheme.- Parameter:
scheme
- a URI scheme
-
asSocketConnectable
Implements interfaceSocketConnectable
. Call this to get access to interface functions.- Gibt zurück:
SocketConnectable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-