"The connection is closed" with g_dbus_connection_new_for_address and TCP/IP
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon May 20 03:10:03 PDT 2013
On 20/05/13 10:44, Lars Hanisch wrote:
> Due to other reasons I must port this to GDBus. As I understand the documentation I have to use
> g_dbus_connection_new_for_address with the address "tcp:host=hdvdr,port=36761". I tried several flags like
> G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION (which should be the right one, I think), but
> g_dbus_connection_new_for_address_finish always returns with the error "The connection is closed".
I think you need both G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and
G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION in the flags.
Failing that, see the documentation of the G_DBUS_DEBUG environment
variable in <https://developer.gnome.org/gio/stable/running-gio-apps.html>.
S
More information about the dbus
mailing list