htreader.h

来自「www工具包」· C头文件 代码 · 共 74 行

H
74
字号
/*      					W3C Sample Code Library Socket Reader Stream!  Socket Reader Stream!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Socket Reader Stream is an input stream which knows how to read from 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 theHTWriter stream, for example. In thedefault initialization module, you can find theHTTransportInit() function which sets up this stream as a defaulttransport for handling socket read operations.This module is implemented by HTReader.c, and itis a part of the  W3C Sample CodeLibrary.*/#ifndef HTREADER_H#define HTREADER_H#include "HTIOStream.h"/*.  Input 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.Here it is chosen as the default TCP High Water Mark (sb_hiwat) for receivingdata. By default, we have chosen a value that equals the normal TCP HighWater Mark (sb_hiwat) for receiving data.*/#define INPUT_BUFFER_SIZE    32*1024/*.  Read Stream.*/extern HTInput_new HTReader_new;/**/#endif/*    @(#) $Id: HTReader.html,v 2.6 1998/05/14 02:10:57 frystyk Exp $*/

⌨️ 快捷键说明

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