2.2. Control and Status Protocols

One way to overcome the limitations of the approaches described above is to use a protocol for control and status to separate the daemon from the user interfaces. Figure 2-4 illustrates a daemon offering a single application programming interface (API) to be used by all of the clients and user interfaces.

Figure 2-4. Using one protocol between the daemon and user interfaces

A control and status protocol has several advantages over the alternatives:

Reduced complexity for multiple user interfaces

A control and status protocol simplifies the user interface logic in the daemon, since the daemon only needs to implement ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.