Vs_Register_Cb; Vs_Set_Data - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)

vs_register_cb

The
vs_register_cb
receive notifications of virtual server initialization and destruction events. The
vs_register_cb
magnus.conf
When a new configuration is loaded, all registered
initialization) callbacks are called for each of the virtual servers before any requests
are served from the new configuration.
same order they were registered; that is, the first callback registered is the first
called.
When the last request has been served from an old configuration, all registered
VSDestroyFunc
virtual servers before any virtual servers are destroyed.
are called in reverse order; that is, the first callback registered is the last called.
Either
for initialization or destruction, respectively.
Syntax
int vs_register_cb(VSInitFunc* initfn, VSDestroyFunc* destroyfn);
Returns
The constant
The constant
Parameters
VSInitFunc* initfn
initialization time, or
initialization events.
VSDestroyFunc* destroyfn
destruction time, or
events.

vs_set_data

The
vs_set_data
server and slot. The
vs_alloc_slot
returns the new slot number in
208
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
function allows a plugin to register functions that will
function would typically be called from an
.
(virtual server destruction) callbacks are called for each of the
or
initfn
destroyfn
if the operation succeeded.
REQ_PROCEED
if the operation failed.
REQ_ABORTED
is a pointer to the function to call at virtual server
if the caller is not interested in virtual server
NULL
if the caller is not interested in virtual server destruction
NULL
function sets the value of a pointer to data for a given virtual
must be
*slot
. If
is
*slot
VSInitFunc
may be
if the caller is not interested in callbacks
NULL
is a pointer to the function to call at virtual server
or a slot number returned from
-1
,
calls
-1
vs_set_data
.
*slot
SAF in
Init
(virtual server
VSInitFunc
callbacks are called in the
VSDestroyFunc
implicitly and
vs_alloc_slot
callbacks

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents