From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: DBus binding & direct connections (p2p)? Date: Fri, 28 Jul 2017 11:15:06 +0200 Message-ID: <87wp6s6hyd.fsf@detlef> References: <87zibq5bii.fsf@petton.fr> <871sp16mjw.fsf@detlef> <87shhhhso6.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501233395 8131 195.159.176.226 (28 Jul 2017 09:16:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2017 09:16:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Emacs Devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 11:16: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 1db1Ni-0001ev-Bu for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 11:16:26 +0200 Original-Received: from localhost ([::1]:46976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db1No-0002ki-2G for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2017 05:16:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1db1MZ-0001r1-CT for emacs-devel@gnu.org; Fri, 28 Jul 2017 05:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1db1MV-00036L-76 for emacs-devel@gnu.org; Fri, 28 Jul 2017 05:15:15 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:64925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1db1MU-00035S-Sg for emacs-devel@gnu.org; Fri, 28 Jul 2017 05:15:11 -0400 Original-Received: from detlef.gmx.de ([212.86.53.188]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lk7fW-1e7cHp2Ujy-00c71D; Fri, 28 Jul 2017 11:15:07 +0200 In-Reply-To: <87shhhhso6.fsf@petton.fr> (Nicolas Petton's message of "Fri, 28 Jul 2017 10:28:09 +0200") X-Provags-ID: V03:K0:X5hvWKjmhXFJdjxG/BnvuCM10yLeaTn4Eyjhpe85yflu2+XiHu9 lJcU3YomnZNck4dYtZjckziN/I4cb1Nll8CsMjYc3/1zguobPeoc9pOSFIdKFqYIkLSu/2a smLKb6ydX5i1q+ZJ0QZrp10AcN5U/9MyoRK+z7rYFA42YWmzoSEaeaNG1DIcB3DOAU4w50K cb5E+8/smia3s0CCkwO9w== X-UI-Out-Filterresults: notjunk:1;V01:K0:FQZAzDLTbjY=:QCXZdq+oi4d3Sif+4FtGBr oU1NcdVWmO5D3wInf9+ovHMVRA5YDjt4biyPRo9dDDfcNmg2DYQClWp52bmRCWgMpu8kWdk3C Ynel6EAvBEQlAk9Q5lsVzLYtzxdIt/QjlxHmd02SCXc+m3jJAhJy4bI2iC94uZURtwR0Z/eS7 4mjWshKg6aitVuaVjxdHFf60vG243xiOuaGnkNohovl/liqVE6Y0yz3A7ywMhhFEuLjzkzROe Pq6gUpDf9lWAnFmZdhpVHZLxMJ/2wCOQiysMYYB/FxdWI84RbwMFLIqgcmLCIBDBdw2TiWJuv 6wS/ThJ8tK3DLNUiNy6x9tljtUubNdDr+vx0qicCkbDm1UX1KYMU1YkbGe7hY+6woRI4rWSph Guewqt+VpsYlhILc1S0Fa7WLORR6FGwn7yC3Dbh2CbvKpgNpmEB48pRqTDi0Z3tJJVc5TD1W7 IT2Aalwvr0nTvSGGF2iIfJyI06ynZwfUDVaqedvv9YtcywN+8fIb2pV0croMVbHvM0qj04y8B hVuBnoIzgAdan6DhlTOGGSGJOmkc2PJrVroq4pwoGSg+uxVS/vKWl2DuUg63ewZklR25arOOa ThuF669rHTE9E5TRcQiqv5F+yd5FPbRRrvhivrV1DMaaa5xpPdimugVWLrIG9daDWZpO9fNoq 1M/Zs3TijtWXw2aAvGRaM7XLTojQ7J4E0F4RYc1Y8aRk+ZcnWu/Pxfza2D9Cjlb6faCICGf8l VBDnwXkZFZD6/HmDuEuEY3zCD7RUKpT7A0ZW6qzkgugW7DYS4MpEFAuJBwdrO87d20k7I/NF X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 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:217095 Archived-At: Nicolas Petton writes: > Hi Michael, Hi Nicolas, > 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). I've never tried it peer-to-peer, but there is `dbus-init-bus'. If you don't use `:system' or `:session' as BUS argument but a string address as shown by you, it calls `dbus_connection_open' with that address. If you provide a non-nil PRIVATE argument, it calls `dbus_connection_open_private' instead. Play with this :-) > Cheers, > Nico Best regards, Michael.