Go to the previous, next section.
@everyfooting Author: ensley // Editor: ensley // Texinfo: ensley @| @| 3 December 1994
All interfaces use a common technique so adding additional interfaces later is easy and has no effect on queuer or other module.
They communicate via a named pipe (FIFO) called /tmp/FIFO. Each time an interface recieves a search request, it sends the following ASCII data packet to the FIFO in this order:
These are defined in ~server/src/include/search-types.h. This file should be included in all interfaces and queuer source. All types will be referred in the source code as EXACT, SUBCASE, SUBSTRING, and REGEXP.
The data should be sent down the pipe in one statement to avoid munging the data with another interface. The queuer will continually read from the FIFO and queue the requests accordingly.
It might be wise to have functions that write and read from the named pipe that can be shared by all interfaces and the queuer to make maintenance more efficient.
Go to the previous, next section.