From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: DBus binding & direct connections (p2p)? Date: Mon, 31 Jul 2017 21:12:09 +0200 Message-ID: <87k22oju9i.fsf@petton.fr> References: <87zibq5bii.fsf@petton.fr> <871sp16mjw.fsf@detlef> <87shhhhso6.fsf@petton.fr> <87wp6s6hyd.fsf@detlef> <87pockj2u7.fsf@petton.fr> <87mv7oj2ie.fsf@petton.fr> <87o9s46c44.fsf@detlef> <87k22siyz3.fsf@petton.fr> <87fudg6bjp.fsf@detlef> <87h8xwiyhz.fsf@petton.fr> <87bmo46aw3.fsf@detlef> <877eypkmxm.fsf@petton.fr> <87fudche8j.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1501528385 24401 195.159.176.226 (31 Jul 2017 19:13:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2017 19:13:05 +0000 (UTC) Cc: Emacs Devel To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 21:12:56 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcG7Z-0005gp-LT for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2017 21:12:53 +0200 Original-Received: from localhost ([::1]:33088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcG7f-0005yc-Kn for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2017 15:12:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcG71-0005vY-TZ for emacs-devel@gnu.org; Mon, 31 Jul 2017 15:12:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcG70-0007OD-On for emacs-devel@gnu.org; Mon, 31 Jul 2017 15:12:19 -0400 Original-Received: from petton.fr ([2a00:5884:8368::1]:49742) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcG70-0007NT-Er for emacs-devel@gnu.org; Mon, 31 Jul 2017 15:12:18 -0400 In-Reply-To: <87fudche8j.fsf@detlef> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1501528336; bh=bW+leboTW5aXfCpj1HmD9H9AGg5OotXug+9+vkR7YGw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=bCeK/4ztIYW5fboU9QBF1zN6YYxGEyf6uSVS2q2twJbX8ShNBEnZ0PeLgNun8oECLmuKG3Gp+PfBDOQlD0mdUxqlME3QEO0YR6IBPI5y9K5j9s/dr1u0Cc9mzl+SID0BM1qXfrNoNYaDS5thEnHP+0KxNeaAyMY020lxnU87dqU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8368::1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217185 Archived-At: --=-=-= Content-Type: text/plain Michael Albinus writes: >> https://trac.webkit.org/browser/webkit/trunk/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L160 > > Well, this is g_dbus_connection_new_for_address, see > . Yes, I saw that. > The gio implementation of D-Bus offers functions, which are not > available in libdbus-1.so, the reference implementation we use in > Emacs. Ok, thanks. I wasn't aware that the gio implementation was something different entirely, I thought it was just wrapping libdbus. Then I'll have to check what the Python binding is using, because the following works just fine in Python 3: import dbus connection = dbus.connection.Connection("tcp:host=localhost,port=1234") res = c.call_blocking(None, "/org/webkit/Inspector", "org.webkit.Inspector", "SetupInspectorClient", "ay", [dbus.ByteArray()]) str = "".join(chr(byte) for byte in res) Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEKNO+2FH986tX/vk8IzWHpHwgeRAFAll/gQkACgkQIzWHpHwg eRAgpAf/bMdiRa0N0WbfshR7IywXaf33UGkqbBAVfhgGQKRxJOn0E1ZRSEMdAojc KMN4qp87IpleI7hvHDVkVYNwb+kNp71zxkumcAXn88j+z5f86vBXo4KUibFPzdKa spudZ7u0y9eK9G0Xn6sMP+A6IMMvIkgIO9DdWBJ8JGb9d9JPk4moiRM4vTYKfM86 jLYQ3m/d0S6gWG7KPzKkDQSBzuyZkGAc7aI8Ms3zBAuzcUs3YvHxTfJpNE4cSeiB MesxZrBST79wkhuJICMCTh39RWLcnNlEjN2zkulTbKwsijJ2AoCJeusyIW8ejA5+ zykb5+SZjwPbD5YTgS5nPI7B0YpVcw== =iNX4 -----END PGP SIGNATURE----- --=-=-=--