Gio.dbus_address_get_stream
function dbus_address_get_stream(address: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_dbus_address_get_stream() }
Asynchronously connects to an endpoint specified by address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation.
When the operation is finished, callback will be invoked. You can then call Gio.dbus_address_get_stream_finish to get the result of the operation.
This is an asynchronous failable function. See Gio.dbus_address_get_stream_sync for the synchronous version.
Since 2.26
- address
A valid D-Bus address.
- cancellable
A Gio.Cancellable or null.
- callback
A Gio.AsyncReadyCallback to call when the request is satisfied.