Gio.dbus_address_get_stream_sync
function dbus_address_get_stream_sync(address: String, out_guid: String, cancellable: Gio.Cancellable): Gio.IOStream { // Gjs wrapper for g_dbus_address_get_stream_sync() }
Synchronously 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.
This is a synchronous failable function. See Gio.dbus_address_get_stream for the asynchronous version.
Since 2.26
- address
A valid D-Bus address.
- out_guid
null or return location to store the GUID extracted from address, if any.
- cancellable
A Gio.Cancellable or null.
- Returns
A Gio.IOStream or null if @error is set.