Giter Site home page Giter Site logo

Blocking server calls about dbussy HOT 7 CLOSED

ldo avatar ldo commented on June 18, 2024
Blocking server calls

from dbussy.

Comments (7)

ldo avatar ldo commented on June 18, 2024

Is this another library also using libdbus?

from dbussy.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on June 18, 2024

Somewhere below it is, combined with the glib's event loop.

from dbussy.

ldo avatar ldo commented on June 18, 2024

So can you get back a DBusConnection pointer from it?

from dbussy.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on June 18, 2024

It uses dbus.SystemBus() from dbus-python. That kind of looks like the best candidate I have atm for what you've asked. :)

https://github.com/getsenic/gatt-python/blob/master/gatt/gatt_linux.py#L33

from dbussy.

ldo avatar ldo commented on June 18, 2024

DBussy is not compatible with dbus-python. As far as I know, there is no way to ask the latter for the underlying DBusConnection pointer from libdbus. Sorry.

from dbussy.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on June 18, 2024

All good, thanks.

Just for me to understand, to be able to have a dbus interface registered there needs
to be an event loop running (or any kind of a dedicated d-bus application) somewhere to maintain it?

When I referred to:

dbussy to expose a D-bus connection with blocking code

I was coming with an analogy of spraying a message on a wall. Where a wall was the underlying system bus, and spraying a message was the the synchronous blocking call. So once you spray the paint it it stays on the wall regardless of the spray can. Seems like this was wrong :)

from dbussy.

ldo avatar ldo commented on June 18, 2024

DBussy stores the underlying libdbus pointers as low-level ctypes.c_void_p values, so you can peek at these and take your life in your hands with it if you choose. But dbus-python hides all that within its C code, where you can’t get at it.

from dbussy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.