3.2. RTA Daemon Architecture

Adding RTA to your daemon is fairly straightforward, since it usually involves using only two routines from the library. The first routine, rta_add_table(), makes one of your daemon's tables visible to the clients. The second routine, dbcommand(), handles the protocol and SQL commands from the clients. Figure 3-2 illustrates a daemon offering RTA access to two UI-visible tables.

Figure 3-2. A daemon using RTA

The dbcommand() routine does not communicate directly with the client. Your program must create a listening TCP or Unix socket and must be able to accept and manage connections from the UI or other clients. Once a ...

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.