⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htbufwrt.h

📁 www工具包. 这是W3C官方支持的www支撑库. 其中提供通用目的的客户端的WebAPI: complete HTTP/1.1 (with caching, pipelining, PUT, POS
💻 H
字号:
/*      					W3C Sample Code Library libwww Buffered Socket Writer Stream!  Buffered Socket Writer Stream!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Buffered Socket Writer Stream is an outputstream  which knows how to write to a BSD type socket. It is partof the Transport interface and may be registeredas part of a Transport Object. The applicationcan initialize this stream together with theHTReader stream, for example. In thedefault initialization module, you can find theHTTransportInit() function which sets up this stream as a defaulttransport for handling unbuffered socket write operations.The difference from the unbuffered write streamis that this stream lets you write characters without causing awrite system call every time. The data is first written intoa buffer. Data is written to the transport only when the buffer is full,or when the stream is flushed.This module is implemented by HTBufWrt.c, and itis a part of the W3C Sample CodeLibrary.*/#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 channelobject. The size of this buffer is a compromise between speed and memory.By default, we have chosen a value frequently used in TCP connections. Inthe stream creation method you can pass any other buffer size. In the caseof 0, we take the default size.*/#define OUTPUT_BUFFER_SIZE 1024/*.  Buffered Write Stream.*/extern HTOutput_new HTBufferWriter_new;/*.  Buffered Write Converter Stream.*/extern HTOutputConverter_new HTBufferConverter_new;/**/#endif/*    @(#) $Id: HTBufWrt.html,v 2.6 1999/04/04 00:12:00 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -