DBusConnection.new_

Asynchronously sets up a D-Bus connection for exchanging D-Bus messages with the end represented by stream.

If stream is a gio.SocketConnection, then the corresponding atk.Socket 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 g_object_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 g_dbus_connection_new_finish() to get the result of the operation.

This is an asynchronous failable constructor. See g_dbus_connection_new_sync() for the synchronous version.

Parameters

stream IOStream
guid string

the GUID to use if authenticating as a server or NULL

flags GDBusConnectionFlags

flags describing how to make the connection

observer DBusAuthObserver
cancellable Cancellable

a gio.Cancellable or NULL

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied

userData void*

the data to pass to callback

Meta

Since

2.26