Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Add Peer to peer dbus support #44

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

alexlarsson
Copy link

This adds a Server object that can be used to handle dbus clients connecting. It also adds server side authentication code, both the generic code and an EXTERNAL implementation.

There is a simple client/serve rdemo to test this, plus i verified connecting to the server with the gdbus implementation (from glib).

This is not typically the case for bus-uses, but is common when
using custom peer-to-peer connections.
This lets you listen on a dbus address for clients connecting.
This is a server/client pair that shows how to use peer-to-peer
connections. You can also verify the server with gdbus like:

 gdbus call -a unix:path=./socket -o /com/github/guelfey/Demo/PeerServer -m com.github.guelfey.PeerServer.Foo 42

 # Please enter the commit message for your changes. Lines starting
@guelfey
Copy link
Owner

guelfey commented Dec 3, 2013

Thanks for your contribution. I'll look at this as soon as I have time for it.

Normally this is enabled after negotiation on the client side, but
we know it is supported in the server.
Without this we can't return Unix FDs on server connections.
We want to do auth after we've correctly set up the connection (by
e.g. exporting objects), otherwise there can be races where the
client starts sending requests before we've yet exported some
object.
@philips
Copy link

philips commented Jan 8, 2014

this is great. Looking forward to seeing it merged.

@crosbymichael
Copy link

Any update on this PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants