Prepare_Nsapi_Thread - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

The
routine is functionally equivalent to
PERM_STRDUP
newstr = (char *) PERM_MALLOC(strlen(str) + 1);
strcpy(newstr, str);
A string created with
Syntax
char *PERM_STRDUP(char *ptr);
Returns
A pointer to the new string
Parameters
is a pointer to a string.
char *ptr
See also
PERM_MALLOC, PERM_FREE, PERM_CALLOC, PERM_REALLOC, MALLOC, FREE,
STRDUP, CALLOC, REALLOC

prepare_nsapi_thread

The
prepare_nsapi_thread
server to act like server-created threads. This function must be called before any
NSAPI functions are called from a thread that is not server-created.
Syntax
void prepare_nsapi_thread(Request *rq, Session *sn);
Returns
void
Parameters
is the Request.
Request *rq
is the Session.
Session *sn
The Request and Session parameters are the same as the ones passed into your
SAF.
See also
protocol_start_response
should be disposed with
PERM_STRDUP
function allows threads that are not created by the
NSAPI Functions (in Alphabetical Order)
PERM_FREE
Chapter 5
NSAPI Function Reference
.
169

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents