Results 1 to 2 of 2

Thread: Dbus -Unique sender id?

  1. #1
    Join Date
    Mar 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Dbus -Unique sender id?

    Hi

    I have a server with DBus API and few clients for it. I would need to be able to identify in server where the signal came from.

    Is it possible to get e.g. clients process name and path. Or is there any other unique identifier?

    For a session it seems that QDBusMessage::service() has unique id, but if client is closed and started again, it changes.

    I'm new to DBus, so I might have missed something

    br, Tyrnikeisari

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Dbus -Unique sender id?

    You shouldn't ever care about things such as pid or client path. If you want to be able to identify clients then provide an API for them to use, for instance let clients "register" and then assign them some unique identifiers that you will later request from them as an argument to your main function calls.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Computer unique fingerprint
    By thru in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2010, 06:29
  2. Qt 4.5.0 win opensource and <dbus/dbus.h>
    By YaK in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd March 2009, 11:06
  3. Unique ID for a PC to use for Key Validation
    By nbkhwjm in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2008, 23:13
  4. The unique key
    By igor.alexandrov in forum Qt Programming
    Replies: 9
    Last Post: 26th January 2008, 00:27
  5. ContextMenu Very unique GUI.
    By VireX in forum Qt Programming
    Replies: 14
    Last Post: 15th April 2007, 08:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.