Fc_Close; Filebuf_Buf2Sd - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Session
*sn
Request
*rq

fc_close

The fc_close function closes a file opened using
be called with files opened using
Syntax
void fc_close(PRFileDesc *fd, FcHdl *hDl;
Returns
void
Parameters
PRFileDesc *fd
is a valid pointer to a structure of type
FcHdl *hDl
been initialized by a prior call to

filebuf_buf2sd

The
filebuf_buf2sd
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 *
Returns
The number of bytes sent to the socket, if successful, or the constant
file buffer could not be sent
Parameters
is the file buffer which must already have been opened.
filebuf *buf
is the platform-independent socket descriptor. Normally this will be
SYS_NETFD sd
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);
is a pointer to the session
is a pointer to the request
fc_open
A valid pointer returned from a prior call to fc_open
fc_open.
function sends a file buffer to a socket (descriptor) and
, SYS_NETFD sd);
buf
NSAPI Functions (in Alphabetical Order)
. This function should only
fc_open
.
this pointer must have
FcHdl
Chapter 5
NSAPI Function Reference
if the
IO_ERROR
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents