HTTee.h
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:1k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. /*                                                                                 Tee stream
  2.                                         TEE STREAM
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    The Tee stream just writes everything you put into it into two oter streams. One use
  11.    (the only use?!) is for taking a cached copey on disk while loading the main copy,
  12.    without having to wait for the disk copy to be finished and reread it.
  13.    
  14.    You can create a T stream using this method. Each stream returns a return value and in
  15.    order to resolve conflicts in the return code you can specify a resolver callback
  16.    function. Each time any of the data methods are called the resolver function is then
  17.    called with the return codes from the two streams. The return code of the T stream
  18.    itself will be the result of the resolver function. If you pass NULL as the resolver
  19.    routine then a default resolver is used.
  20.    
  21.    This module is implemented by HTTee.c, and it is a part of the  W3C Reference Library.
  22.    
  23.  */
  24. #include "HTStream.h"
  25. #include "HTArray.h"
  26. extern HTStream * HTTee (HTStream * s1, HTStream * s2, HTComparer * resolver);
  27. /*
  28.    End of definition  */