Dbus examples

This is a discussion on Dbus examples within the Linux Programming forums, part of the Platform Specific Boards category; I know DBUS can be a powerful event and messaging system. Can anyone suggest some good links/info on getting the ...

  1. #1
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875

    Dbus examples

    I know DBUS can be a powerful event and messaging system. Can anyone suggest some good links/info on getting the most from DBUS?

    Thanks in avance

    Jeffy
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I have mixed feelings about dbus* and have never programmed for it, but if I was going to, I'd probably start here:

    D-Bus GLib bindings - Reference Manual


    *mostly because AFAICT it does not do anything that can't be done with regular IPC but seems to introduces a bunch of new (hence perhaps unnecessary) complications, and has slowly and insidiously become a default in most standard installations. On the other hand, the only way for something like that to succeed is probably to risk failure on a massive scale until it all works.
    Last edited by MK27; 12-18-2009 at 08:17 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    it does not do anything that can't be done with regular IPC
    It offers a service detection system and a publish/subscribe mechanism. Such a thing was sorely lacking in the *nix world before DBus.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    @all. Tks for the opinions. From a purely IPC standpoint MK27 is correct but as CornedBee says it does provide key system evens like media insertion, things like that and that is the kind of stuff I want to learn more of. For normal IPC if I don't have to worry about non-NIX platforms good old msg queues work just dandy for me; if these need to go off-machine I can always wrap the msg packet contents in XML and push it out through a socket. It is the system events I was more curious about.
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows - how to get started... examples don't help
    By nonoob in forum Windows Programming
    Replies: 6
    Last Post: 09-26-2008, 05:45 AM
  2. Thread Pool libraries or examples
    By Mastadex in forum Windows Programming
    Replies: 6
    Last Post: 08-24-2008, 08:58 PM
  3. Compiling some maths examples
    By hamsteroid in forum C Programming
    Replies: 4
    Last Post: 03-29-2007, 02:30 PM
  4. what are some good C++ source code examples?
    By orion- in forum C++ Programming
    Replies: 4
    Last Post: 09-13-2005, 09:24 PM
  5. Treeview examples.
    By Sebastiani in forum Windows Programming
    Replies: 0
    Last Post: 09-21-2003, 12:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21