Annotation of libwww/Library/src/HTTee.html, revision 2.14
2.1 timbl 1: <HTML>
2: <HEAD>
2.14 ! frystyk 3: <TITLE>W3C Reference Library libwww T Stream</TITLE>
! 4: <!-- Changed by: Henrik Frystyk Nielsen, 31-May-1996 -->
2.1 timbl 5: </HEAD>
6: <BODY>
7:
2.2 frystyk 8: <H1>Tee stream</H1>
2.1 timbl 9:
2.2 frystyk 10: <PRE>
11: /*
2.6 frystyk 12: ** (c) COPYRIGHT MIT 1995.
2.2 frystyk 13: ** Please first read the full copyright statement in the file COPYRIGH.
14: */
15: </PRE>
2.1 timbl 16:
2.14 ! frystyk 17: The Tee stream just writes everything you put into it into two other
2.2 frystyk 18: streams. One use (the only use?!) is for taking a cached copey on disk
19: while loading the main copy, without having to wait for the disk copy
20: to be finished and reread it. <P>
21:
2.11 frystyk 22: You can create a T stream using this method. Each stream returns a
23: return value and in order to resolve conflicts in the return code you
24: can specify a resolver callback function. Each time any of the data
25: methods are called the resolver function is then called with the
26: return codes from the two streams. The return code of the T stream
27: itself will be the result of the resolver function. If you pass NULL
28: as the resolver routine then a default resolver is used.<P>
29:
2.2 frystyk 30: This module is implemented by <A HREF="HTTee.c">HTTee.c</A>, and it is
2.11 frystyk 31: a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
32: Reference Library</A>.
2.1 timbl 33:
2.2 frystyk 34: <PRE>
2.14 ! frystyk 35: #ifndef _HTTEE_H
! 36: #define _HTTEE_H
! 37:
2.2 frystyk 38: #include "HTStream.h"
2.11 frystyk 39: #include "HTArray.h"
2.1 timbl 40:
2.11 frystyk 41: extern HTStream * HTTee (HTStream * s1, HTStream * s2, HTComparer * resolver);
2.14 ! frystyk 42:
! 43: #endif /* HTTEE_H */
2.1 timbl 44: </PRE>
2.2 frystyk 45:
2.13 frystyk 46: <HR>
47: <ADDRESS>
2.14 ! frystyk 48: @(#) $Id: HTTee.html,v 2.13 1996/04/12 17:49:26 frystyk Exp $
2.13 frystyk 49: </ADDRESS>
2.2 frystyk 50: </BODY>
2.1 timbl 51: </HTML>
Webmaster