A D-Bus address.
Flags from the #GDBusServerFlags enumeration.
A D-Bus GUID.
A #GDBusAuthObserver or %NULL.
A #GCancellable or %NULL.
A #GDBusServer or %NULL if @error is set. Free with g_object_unref().
GException on failure. ConstructionException GTK+ fails to create the object.
2.26
Creates a new D-Bus server that listens on the first address in @address that works.
Once constructed, you can use g_dbus_server_get_client_address() to get a D-Bus address string that clients can use to connect.
To have control over the available authentication mechanisms and the users that are authorized to connect, it is strongly recommended to provide a non-%NULL #GDBusAuthObserver.
Connect to the #GDBusServer::new-connection signal to handle incoming connections.
The returned #GDBusServer isn't active - you have to start it with g_dbus_server_start().
#GDBusServer is used in this example[gdbus-peer-to-peer].
This is a synchronous failable constructor. There is currently no asynchronous version.