NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
175
Returns
A pointer to the new space if the request could be satisfied.
Parameters
void *ptr
is a (void *) pointer to a block of memory. If the pointer is not one
created by
MALLOC, CALLOC,
or
STRDUP
, the behavior is undefined.
int size
is the number of bytes to allocate.
Example
char *name;
name = (char *) MALLOC(256);
if (NotBigEnough())
name = (char *) REALLOC(512);
See also
MALLOC, FREE, STRDUP, CALLOC, PERM_MALLOC, PERM_FREE, PERM_REALLOC,
PERM_CALLOC, PERM_STRDUP
request_get_vs
The
request_get_vs
function finds the
VirtualServer*
to which a request is
directed.
The returned
VirtualServer*
is valid only for the current request. To retrieve a
virtual server ID that is valid across requests, use
vs_get_id
.
Syntax
const VirtualServer* request_get_vs(Request* rq);
Returns
The
VirtualServer*
to which the request is directed.
Parameters
Request *rq
is the request for which the
VirtualServer*
is returned.
See also
vs_get_id
request_header
The
request_header
function finds an entry in the
pblock
containing the client’s
HTTP request headers (
rq->headers
). You must use this function rather than
pblock_findval
when accessing the client headers since the server may begin
processing the request before the headers have been completely read.
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...