![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 170](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653170.webp)
NSAPI Functions (in Alphabetical Order)
170
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
protocol_dump822
The
protocol_dump822
function prints headers from a specified
pblock
into a
specific buffer, with a specified size and position. Use this function to serialize the
headers so that they can be sent, for example, in a mail message.
Syntax
char *protocol_dump822(pblock *pb, char *t, int *pos, int tsz);
Returns
A pointer to the buffer, which will be reallocated if necessary.
The function also modifies *
pos
to the end of the headers in the buffer.
Parameters
pblock *pb
is the
pblock
structure.
char *t
is the buffer, allocated with
MALLOC
,
CALLOC
, or
STRDUP
.
int *pos
is the position within the buffer at which the headers are to be dumped.
int tsz
is the size of the buffer.
See also
protocol_start_response, protocol_status
protocol_set_finfo
The
protocol_set_finfo
function retrieves the
content-length
and
last-modified
date from a specified
stat
structure and adds them to the
response headers (
rq->srvhdrs
). Call
protocol_set_finfo
before calling
protocol_start_response
.
Syntax
int protocol_set_finfo(Session *sn, Request *rq, struct stat
*finfo);
Returns
The constant
REQ_PROCEED
if the request can proceed normally or the constant
REQ_ABORTED
if the function should treat the request normally, but not send any
output to the client
Parameters
Session *sn
is the Session.
Request *rq
is the Request.
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...