Buffered Transport Writer Stream

/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
A buffered output stream. This stream lets you write characters to a stream without causing a write every time. The data is first written into a buffer. Data is written to the actual stream only when the buffer is full, or when the stream is flushed.

This module is implemented by HTBufWrt.c, and it is a part of the W3C Reference Library.

#ifndef HTBUFWRT_H
#define HTBUFWRT_H

#include "HTIOStream.h"

Default Output Buffering

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. By default, we have chosen a value frequently used in TCP connections. In the stream creation method you can pass any other buffer size. In the case of 0, we take the default size.
#define OUTPUT_BUFFER_SIZE 512

Buffered Write Stream

extern HTOutput_new HTBufferWriter_new;
#endif


@(#) $Id: HTBufWrt.html,v 2.1 1996/04/14 01:22:59 frystyk Exp $