/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */
The ANSI Reader Stream and the ANSI Writer Stream are
output streams which knows how to read
and write to an ANSI C type FILE descriptor. Both streams are part of the
Transport interface and may be registered as
part of a Transport Object. In the
default initialization interface, you can find the
HTTransportInit()
function which sets up the streams for handling
local file access on some platforms.
This module is implemented by HTANSI.c, and it is a part of the W3C Sample Code Library.
#ifndef HTANSI_H #define HTANSI_H #include "HTIOStream.h" #ifdef __cplusplus extern "C" { #endif
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.
#define FILE_BUFFER_SIZE 65536
extern HTInput_new HTANSIReader_new;
extern HTOutput_new HTANSIWriter_new;
#ifdef __cplusplus } #endif #endif
End of declaration module