Overview of NSAPI C Functions
Chapter
4
Creating Custom SAFs
123
Reconfigure the Server
After modifying
obj.conf
, you need to reconfigure the server. See “Dynamic
Reconfiguration,” on page 20 for details.
Test the SAF
Test your SAF by accessing your server from a browser with a URL that triggers
your function. For example, if your new SAF is triggered by requests to resources
in
http://
server-name
/animations/small
, try requesting a valid resource that
starts with that URI.
You should disable caching in your browser so that the server is sure to be
accessed. In Navigator you may hold the shift key while clicking the Reload button
to ensure that the cache is not used. (Note that the shift-reload trick does not
always force the client to fetch images from source if the images are already in the
cache.)
You may also wish to disable the server cache using the
cache-init
SAF.
Examine the access log and error log to help with debugging.
Overview of NSAPI C Functions
NSAPI provides a set of C functions that are used to implement SAFs. They serve
several purposes. They provide platform-independence across Netscape Server
operating system and hardware platforms. They provide improved performance.
They are thread-safe which is a requirement for SAFs. They prevent memory leaks.
And they provide functionality necessary for implementing SAFs. You should
always use these NSAPI routines when defining new SAFs.
<Object name="small_anim">
Service fn=do_small_anim speed=40
</Object>
<Object name="fullscreen_anim">
Service fn=do_big_anim speed=20
</Object>
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...