[gobject.object.ObjectWrap.unref].
DBusServer.newSync
gio.dbus_server.DBusServer newSync(string address, gio.types.DBusServerFlags flags, string guid, gio.dbus_auth_observer.DBusAuthObserver observer = null, gio.cancellable.Cancellable cancellable = null)Creates a new D-Bus server that listens on the first address in address that works.
Once constructed, you can use [gio.dbus_server.DBusServer.getClientAddress] 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 [gio.dbus_server.DBusServer.start].
#GDBusServer is used in this [example][gdbus-peer-to-peer].
This is a synchronous failable constructor. There is currently no asynchronous version.
Parameters
address | A D-Bus address. |
flags | Flags from the #GDBusServerFlags enumeration. |
guid | A D-Bus GUID. |
observer | A #GDBusAuthObserver or null. |
cancellable | A #GCancellable or null. |
Returns
A #GDBusServer or null if error is set. Free with
Throws
[ErrorWrap]