Synchronously sets up a D-Bus connection for exchanging D-Bus messages with the end represented by stream.
If stream is a SocketConnection, then the corresponding
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 unref
on it.
If observer is not null it may be used to control the authentication process.
This is a synchronous failable constructor. See @new for the asynchronous version.
| stream |
a IOStream |
| guid |
the GUID to use if a authenticating as a server or null |
| flags |
flags describing how to make the connection |
| observer |
a DBusAuthObserver or null |
| cancellable |
a Cancellable or null |
|
a DBusConnection or null if throws is set. Free with unref. |