File:  [Public] / libwww / Library / src / HTANSI.html
Revision 2.3: download - view: text, annotated - select for diffs
Sat Jun 8 01:51:59 1996 UTC (28 years ago) by frystyk
Branches: MAIN
CVS tags: Release-5-0a, Release-5-0, Release-4-1b5, Release-4-1b4, Release-4-1b3, Release-4-1b1, PIPELINE1, HEAD
Version 4.1beta1

<HTML>
<HEAD>
<!-- Changed by: Henrik Frystyk Nielsen,  7-Jun-1996 -->
  <NEXTID N="z18">
  <TITLE>W3C Reference Library ANSI Read and Write Streams</TITLE>
</HEAD>
<BODY>
<H1>
  ANSI Read and Write Streams
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
The ANSI Reader Stream and the ANSI Writer Stream are
<A HREF="HTIOStream.html">output streams</A>&nbsp;which knows how to read
and write to an ANSI C type FILE descriptor. Both streams are part of the
<A HREF="WWWTrans.html">Transport interface </A>and may be registered as
part of a <A HREF="HTTrans.html">Transport Object</A>. In the
<A HREF="WWWInit.html">default initialization interface</A>, you can find the
<CODE>HTTransportInit()</CODE> function which sets up the streams for handling
local file access on some platforms.
<P>
This module is implemented by <A HREF="HTANSI.c">HTANSI.c</A>, and it is
a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">W3C Reference
Library</A>.
<PRE>
#ifndef HTANSI_H
#define HTANSI_H

#include <A HREF="HTIOStream.html">"HTIOStream.h"</A>
</PRE>
<H2>
  Input Buffering
</H2>
<P>
In order to optimize reading a channel, we bind a buffer to each channel
object. The size of this buffer is a compromise between speed and memory.
<PRE>
#define FILE_BUFFER_SIZE	8192
</PRE>
<H2>
  Read Stream
</H2>
<PRE>
extern HTInput_new HTANSIReader_new;
</PRE>
<H2>
  Write Stream
</H2>
<PRE>
extern HTOutput_new HTANSIWriter_new;
</PRE>
<PRE>
#endif
</PRE>
<P>
End of declaration module
</BODY></HTML>

Webmaster