NSAPI Functions (in Alphabetical Order)
212
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
vs_register_cb
The
vs_register_cb
function allows a plugin to register functions that will
receive notifications of virtual server initialization and destruction events. The
vs_register_cb
function would typically be called from an
Init
SAF in
magnus.conf
.
When a new configuration is loaded, all registered
VSInitFunc
(virtual server
initialization) callbacks are called for each of the virtual servers before any requests
are served from the new configuration.
VSInitFunc
callbacks are called in the
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 server destruction) callbacks are called for each of the
virtual servers before any virtual servers are destroyed.
VSDestroyFunc
callbacks
are called in reverse order; that is, the first callback registered is the last called.
Either
initfn
or
destroyfn
may be
NULL
if the caller is not interested in callbacks
for initialization or destruction, respectively.
Syntax
int vs_register_cb(VSInitFunc* initfn, VSDestroyFunc* destroyfn);
Returns
The constant
REQ_PROCEED
if the operation succeeded.
The constant
REQ_ABORTED
if the operation failed.
Parameters
VSInitFunc* initfn
is a pointer to the function to call at virtual server
initialization time, or
NULL
if the caller is not interested in virtual server
initialization events.
VSDestroyFunc* destroyfn
is a pointer to the function to call at virtual server
destruction time, or
NULL
if the caller is not interested in virtual server destruction
events.
vs_set_data
The
vs_set_data
function sets the value of a pointer to data for a given virtual
server and slot. The
*slot
must be
-1
or a slot number returned from
vs_alloc_slot
. If
*slot
is
-1
,
vs_set_data
calls
vs_alloc_slot
implicitly and
returns the new slot number in
*slot
.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...