DCOP

Desktop COmmunication Protocol (DCOP) was an inter-process communication (IPC) daemon by KDE used in K Desktop Environment 3. The design goal for the protocol was to allow applications to interoperate, and share complex tasks. Essentially, DCOP was a ‘remote control’ system, which allowed applications or scripts to enlist the help of other applications. DCOP is built on top of the X11 Inter-Client Exchange protocol.

Desktop Communication Protocol
Original author(s)KDE
Developer(s)KDE
Operating systemLinux
TypeIPC daemon
LicenseGNU LGPL

DCOP continues to be used by the K Desktop Environment 3-fork Trinity Desktop Environment. DCOP was replaced by D-Bus, a message bus system heavily influenced by the DCOP and standardized by freedesktop.org, in KDE Software Compilation 4 and later.

DCOP model

DCOP implements the client–server model, where each application using DCOP is a client and communicates with other clients through the DCOP server. DCOP server functions like a traffic director, dispatching messages/calls to the proper destinations. All clients are peers of each other.

Two types of actions are possible with DCOP: "send and forget" messages, which do not block, and "calls," which block waiting for some data to be returned.

Any data that will be sent is serialized (also referred to as marshalling in CORBA speak) using the built-in QDataStream operators available in all of the Qt classes. There is also a simple IDL-like compiler available (dcopidl and dcopidl2cpp) that generates stubs and skeletons. Using the dcopidl compiler has the additional benefit of type safety.

There is a command-line tool called ‘dcop’ (note the lower-case letters) that can be used for communication with the applications from the shell. ‘kdcop’ is a GUI tool to explore the interfaces of an application.

gollark: It's not even during lessons. It's during *break* that they recently banned them.
gollark: (Not actual quote)
gollark: "We have amazing devices allowing us to access much of society's knowledge and compute problems intractable as of a century ago and contact anyone else with one instantly but someone misused them so they're banned."
gollark: Also, my school banned use of phones at lunch/break for some stupid reason recently.
gollark: Well, that's hyperbolic, but mostly it doesn't.

See also

  • KDELibs – predecessor of KDE Platform 4
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.