Installation guide

28 DC 900-1325I
Freeway Server-Resident Application (SRA) Programmer Guide
Makefile
This is the make file that compiles and links the filter.c file into
a shared object file that is later accessed by the Freeway dae-
mon. Refer to Chapter 6 for more information about the exam-
ple filter SRA.
2.2.2 Loopback Test Programs
Each protocol software distribution CDROM includes a loopback test program
designed to work with the protocol image. In most cases these files are already installed
on the Freeway server disk drive. These files are located in the directory structure
/usr/local/freeway/client/test/protocol where protocol is the name or mnemonic of the spe-
cific protocol used. In the following list of files we will use the Sample Protocol Software
(SPS) loopback program as an example. These files are located in the directory
/usr/local/freeway/client/test/sps. Loopback programs from other protocols have a similar
file set except that the three letter mnemonic is different for each protocol and the files
reside in different (parallel) subdirectories.
spsalp.c
This is the C source file for the loopback program (in this case
Sample Protocol Software). The “alp” stands for “asynchronous
loopback program” which means that it uses non-blocking I/O
when interfacing with the DLI API.
spsaldcfg
This is the text version of the DLI configuration file used by the
SPS loopback program.
spsaltcfg
This is the text version of the TSI configuration file used by the
SPS loopback program.
makefile.bsd
This is the make file that compiles and links the loopback pro-
gram and creates the executable file (
spsalp). The make file also
generates the binary versions of the DLI and TSI configuration
files (
spsaldcfg.bin and spsaltcg.bin). Lastly the make file takes