Examples In The Build - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Examples in the Build

Examples in the Build
The
nsapi/examples/
server installation directory contains examples of source code for SAFs.
You can use the
examples and create a library containing the functions in all the example files.
To test an example, load the
Server by adding the following directive in the
Init fn=load-modules shlib=examples.so/dll
funcs=
The
funcs
If the example uses an initialization function, be sure to specify the initialization
function in the
to call the initialization function.
For example, the
which is initialized by the
these functions:
Init fn=load-modules
The following directive calls the
Init fn=acf-init file=
To invoke the new SAF at the appropriate step in the response handling process,
add an appropriate directive in the object to which it applies, for example:
PathCheck fn=restrict-by-acf
After adding new
Enterprise Server to load the changes, since
server initialization.
216
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
or
plugins/nsapi/examples
example.mak
examples
function1,function2,function3
parameter specifies the functions to load from the shared library.
argument to
funcs
example implements the
PathCheck
acf-init
yourlibrary
extra-arg
directives to
Init
makefile in the same directory to compile the
shared library into the Netscape Enterprise
Init
, and also add an
load-modules
function. The following directive loads both
funcs=acf-init,restrict-by-acf
function during server initialization:
acf-init
, you always need to restart the
magnus.conf
directives are only applied during
Init
subdirectory within the
section of
magnus.conf
directive
Init
function,
restrict-by-acf
:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents