![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 147](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653147.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
147
Session
*sn
is a pointer to the session
Request
*rq
is a pointer to the request
fc_close
The fc_close function closes a file opened using
fc_open
. This function should only
be called with files opened using
fc_open
.
Syntax
void fc_close(PRFileDesc *fd, FcHdl *hDl;
Returns
void
Parameters
PRFileDesc *fd
A valid pointer returned from a prior call to fc_open
FcHdl *hDl
is a valid pointer to a structure of type
FcHdl
this pointer must have
been initialized by a prior call to
fc_open.
filebuf_buf2sd
The
filebuf_buf2sd
function sends a file buffer to a socket (descriptor) and
returns the number of bytes sent.
Use this function to send the contents of an entire file to the client.
Syntax
int filebuf_buf2sd(filebuf *
buf
, SYS_NETFD sd);
Returns
The number of bytes sent to the socket, if successful, or the constant
IO_ERROR
if the
file buffer could not be sent
Parameters
filebuf *buf
is the file buffer which must already have been opened.
SYS_NETFD sd
is the platform-independent socket descriptor. Normally this will be
obtained from the csd (client socket descriptor) field of the sn (Session) structure.
Example
if (filebuf_buf2sd(buf, sn->csd) == IO_ERROR)
return(REQ_EXIT);
Содержание 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...