Go to the previous, next section.

Queuer-Searcher Communications

@everyfooting Author: ensley // Editor: ensley // Texinfo: ensley @| @| 3 December 1994

General Overview

This document describes the specifics of the communications between the Queuer module and the Searcher module.

When the Searcher is ready for a search, it signals the Queuer using SIGUSR1. If their is anything in the queue, the Queuer sends the search request "packet" down the pipe to the standard in of the Searcher. Remember the Queuer originally spawned the Searcher process using popen() library call. The definition of this "packet" shall be kept in the common includes directory INSTALLDIR/server/src/include/ and is called queuer-searcher.h. If any modifications are needed for future versions of Free Arhcie, this should make things easier. Ideally functions that deal with this pipe and the packet directly should be kept in a separate file.

The Searcher does not have to signal the Queuer for the first request. It is assumed that the Searcher is initially waiting and willing to take a search request.

The current data packet looks like this:

Let's look at the data packet in more detail.

Go to the previous, next section.