DBusConnection.newForAddress

Asynchronously connects and sets up a D-Bus client connection for exchanging D-Bus messages with an endpoint specified by @address which must be in the D-Bus address format.

This constructor can only be used to initiate client-side connections - use g_dbus_connection_new() if you need to act as the server. In particular, @flags cannot contain the %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER, %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS or %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flags.

When the operation is finished, @callback will be invoked. You can then call g_dbus_connection_new_for_address_finish() to get the result of the operation.

If @observer is not %NULL it may be used to control the authentication process.

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

Parameters

address string

a D-Bus address

flags GDBusConnectionFlags

flags describing how to make the connection

observer DBusAuthObserver

a #GDBusAuthObserver or %NULL

cancellable Cancellable

a #GCancellable 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