all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Nicolas Petton <nicolas@petton.fr>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: DBus binding & direct connections (p2p)?
Date: Fri, 28 Jul 2017 11:15:06 +0200	[thread overview]
Message-ID: <87wp6s6hyd.fsf@detlef> (raw)
In-Reply-To: <87shhhhso6.fsf@petton.fr> (Nicolas Petton's message of "Fri, 28 Jul 2017 10:28:09 +0200")

Nicolas Petton <nicolas@petton.fr> 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.



  reply	other threads:[~2017-07-28  9:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27 12:07 DBus binding & direct connections (p2p)? Nicolas Petton
2017-07-28  7:35 ` Michael Albinus
2017-07-28  8:28   ` Nicolas Petton
2017-07-28  9:15     ` Michael Albinus [this message]
2017-07-28 10:03       ` Nicolas Petton
2017-07-28 10:10         ` Nicolas Petton
2017-07-28 11:21           ` Michael Albinus
2017-07-28 11:26             ` Nicolas Petton
2017-07-28 11:33               ` Michael Albinus
2017-07-28 11:36                 ` Nicolas Petton
2017-07-28 11:47                   ` Michael Albinus
2017-07-31  8:52                     ` Nicolas Petton
2017-07-31 14:29                       ` Michael Albinus
2017-07-31 19:12                         ` Nicolas Petton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp6s6hyd.fsf@detlef \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=nicolas@petton.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.