Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 331

Nsapi
Table of Contents

Advertisement

Returns
if successful.
IO_OKAY
if an error occurs.
IO_ERROR
if an error in file handling occurs.
FC_ERROR
Parameters
const char *fileName
is any header data (which can be NULL).
const char *hdr
is any footer data (which can be NULL).
const char *ftr
is the length of the header data in bytes (which can be 0).
PRUint32 hlen
is the length of the footer data in bytes (which can be 0).
PRUint32 flen
is ORed directives for this function (see Flags).
PRUint32 flags
PRIntervalTime timeout
is a pointer to the request.
Request *rq
is a pointer to the session.
Session *sn
Flags
supplies the Content-length header and does a
FC_CNTLEN
PROTOCOL_START_RESPONSE
does a
FC_PROTO
PROTOCOL_START_RESPONSE
Example
const char *fileName = "/docs/myads/file1.ad";
char *hdr = GenHdr(); // Implemented by plugin
char *ftr = GenFtr(); // Implemented by plugin
if(fc_net_write(fileName, hdr, ftr, strlen(hdr), strlen(ftr),
FC_CNTLEN, PR_INTERVAL_NO_TIMEOUT, sn, rq) != IO_OKEY)
{
ereport(LOG_FAILURE, "fc_net_write() failed");
return REQ_ABORTED;
}
is the file to be inserted.
is the timeout before this function aborts.
.
.
Appendix F
Dynamic Results Caching Functions
331

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents