Skip to main content

Posts

Showing posts from 2014

Qt Dbus Communication

Qt Dbus Communication What is a Dbus ? Dbus is an inter-process communication system. It allows two individual processes to communicate with each other. It is available in Linux based and Unix based systems. How does qt Support dbus communication? Qt provides a module called QtDBus module. It is a Unix-only library which can be used to perform IPCs (Inter Process Communication) However if you want two processes to start communicating with each using dbus certain initial setup has to be done. And the two communicating processes will be obligated to follow a contract. The contract is enforced by a user defined interface. Let’s try and have two processes communicate with each other using dbus . Here in our example let’s implement a client and server to illustrate dbus communication. Before we create the server process, the server process should provide certain services which can be accessed by clients. This service is defined by the user defined interf