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: Fri, 28 Jul 2017 10:28:09 +0200 Message-ID: <87shhhhso6.fsf@petton.fr> References: <87zibq5bii.fsf@petton.fr> <871sp16mjw.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 1501230514 23668 195.159.176.226 (28 Jul 2017 08:28:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 08:28:34 +0000 (UTC) Cc: Emacs Devel To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 10:28:27 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 1db0dF-0005kx-De for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 10:28:25 +0200 Original-Received: from localhost ([::1]:46757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db0dK-0006K7-UP for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 04:28:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db0d8-0006Hn-RF for emacs-devel@gnu.org; Fri, 28 Jul 2017 04:28:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db0d7-0001f1-U3 for emacs-devel@gnu.org; Fri, 28 Jul 2017 04:28:18 -0400 Original-Received: from petton.fr ([2a00:5884:8368::1]:54396) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1db0d7-0001d2-K1 for emacs-devel@gnu.org; Fri, 28 Jul 2017 04:28:17 -0400 In-Reply-To: <871sp16mjw.fsf@detlef> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1501230495; bh=PBdowAb2yC62IA0BpjyVDYsFfq1Bw2Ttve2R1r0Dr5s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=ES9nMK6uzeOZvk8tCFFK/llJR0vz85COsId14Ngtv0zBrF3EKZemaPO+siIL3soJFn+TGEyHYqf1EMZbdENjLXX1NWbdXhUEZC6Yx+pqEmZV8JiuvoDT6y+gtytvrBZfFHQcug3LTc0+VxXnSNsBHPdF2bNf041yn1esOddud70= 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:217093 Archived-At: --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Michael, > The Java D-Bus bindings offer the interface > org.freedesktop.dbus.DirectConnection, which "Handles a peer to peer > connection between two applications withou a bus daemon.". See > . Likely > this is what you've asked for; it isn't implemented in the Emacs > bindings. That's exactly what I meant. Some applications communicate through dbus, using peer-to-peer communications, without using a bus. The Python binding allows for direct connections to be open like the following (TCP in this example): import dbus; conn = dbus.connection.Connection("tcp:host=localhost,port=1234") I think that calling `dbus_connection_open' with a dbus address would be enough to support direct connections in the Emacs binding (but I might be wrong). Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEKNO+2FH986tX/vk8IzWHpHwgeRAFAll69ZkACgkQIzWHpHwg eRDHcAf/XqipJ50mKREfTOCLGAY2sGUrsPtPYBIotJTAq+IriF8AAIGb/qKfsIIF vQdhUhhlR3339rhOTCYkjjHyqBb0TVikZkaKBZUk/F6Ig7VC3Hjh4K4zm6+ENg63 phrOM2byrCHqfWzycAGqDw03IdXUo7W9QoSWVMbaE0sj820xygQFjnajwllceya2 0a0PFJ7mAqSovJXnb8SlI7WettF8nKNsHr98KFrlaw3/zjgHMyz/Ct9960eurTmb OJlG1pPS1TfNZMqbKYtWSJLaC8L7i+6qJ2TIYm3zG6ZEtcDnlSjSKmlypd3RdXiN /E0Ju8Kr+yKW7qFhBwy7kmRsqLrESA== =U8r9 -----END PGP SIGNATURE----- --=-=-=--