Quality Of Service Examples; Installing The Example; Source Code - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Quality of Service Examples

logmsg = (char *)
MALLOC(strlen(ip) + 1 + strlen(method) + 1 + strlen(uri) +
len = util_sprintf(logmsg, "%s %s %s\n", ip, method, uri);
/* The atomic version uses locking to prevent interference */
system_fwrite_atomic(logfd, logmsg, len);
FREE(logmsg);
return REQ_PROCEED;
}
Quality of Service Examples
The code for the
case you want to define your own SAFs for quality of service handling.
For more information, see the Netscape Enterprise Server Performance Tuning, Sizing,
and Scaling Guide.

Installing the Example

Inside the default object in
directives:
AuthTrans fn=qos-handler
...
Error fn=qos-error code=503

Source Code

The source code for this example is in the
plugins/nsapi/examples
#include "frame/log.h"
#include "frame/http.h"
#include "safs/qos.h"
/*-----------------------------------------------------------------------------
decode : internal function used for parsing of QOS values in pblock
-----------------------------------------------------------------------------*/
230
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
1 + 1);
qos-handler
obj.conf
subdirectory of the server root directory.
and
SAFs is provided as an example in
qos-error
, add the following
file in the
qos.c
and
AuthTrans
Error

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents