DBusConnection.new_
void new_(gio.iostream.IOStream stream, string guid, gio.types.DBusConnectionFlags flags, gio.dbus_auth_observer.DBusAuthObserver observer = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously sets up a D-Bus connection for exchanging D-Bus messages with the end represented by stream.
If stream is a #GSocketConnection, then the corresponding #GSocket will be put into non-blocking mode.
The D-Bus connection will interact with stream from a worker thread. As a result, the caller should not interact with stream after this method has been called, except by calling [gobject.object.ObjectWrap.unref] on it.
If observer is not null it may be used to control the authentication process.
When the operation is finished, callback will be invoked. You can then call [gio.dbus_connection.DBusConnection.newFinish] to get the result of the operation.
This is an asynchronous failable constructor. See [gio.dbus_connection.DBusConnection.newSync] for the synchronous version.
Parameters
stream | a #GIOStream |
guid | the GUID to use if authenticating as a server or null |
flags | flags describing how to make the connection |
observer | a #GDBusAuthObserver or null |
cancellable | a #GCancellable or null |
callback | a #GAsyncReadyCallback to call when the request is satisfied |