httee.h

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

H
56
字号
/*					W3C Sample Code Library libwww T Stream!Tee stream!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Tee stream just writes everything you put into it into two otherstreams. One use (the only use?!) is for taking a cached copey on diskwhile loading the main copy, without having to wait for the disk copyto be finished and reread it. You can create a T stream using this method. Each stream returns areturn value and in order to resolve conflicts in the return code youcan specify a resolver callback function. Each time any of the datamethods are called the resolver function is then called with thereturn codes from the two streams. The return code of the T streamitself will be the result of the resolver function. If you pass NULLas the resolver routine then a default resolver is used.This module is implemented by HTTee.c, and it isa part of the  W3CSample Code Library.*/#ifndef _HTTEE_H#define _HTTEE_H#include "HTStream.h"#include "HTArray.h"extern HTStream * HTTee (HTStream * s1, HTStream * s2, HTComparer * resolver);#endif /* HTTEE_H *//*@(#) $Id: HTTee.html,v 2.16 1998/05/14 02:11:13 frystyk Exp $*/

⌨️ 快捷键说明

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