version 2.17, 1996/03/10 21:57:11
|
version 2.18, 1996/04/12 17:46:53
|
Line 1
|
Line 1
|
<HTML> |
<HTML> |
<HEAD> |
<HEAD> |
<TITLE>W3C Reference Library libwww ANSI C FILE STREAM</TITLE> |
<TITLE>W3C Reference Library libwww ANSI C FILE STREAM</TITLE> |
<!-- Changed by: Henrik Frystyk Nielsen, 31-Jan-1996 --> |
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 --> |
<NEXTID N="z4"> |
<NEXTID N="z4"> |
</HEAD> |
</HEAD> |
<BODY> |
<BODY> |
Line 39 Reference Library</A>.
|
Line 39 Reference Library</A>.
|
#include "HTFormat.h" |
#include "HTFormat.h" |
</PRE> |
</PRE> |
|
|
<A NAME="utils"><H2>Basic Utility Streams</H2></A> |
|
|
|
These streams can be plugged in everywhere in a stream pipe. |
|
|
|
<H3><A NAME="BlackHole">Black Hole Stream</A></H3> |
|
|
|
This stream simply absorbs data without doing anything what so |
|
ever. The <CODE>HTBlackHoleConverter</CODE> declaration can be used in |
|
the stream stack as a converter. |
|
|
|
<PRE> |
|
extern HTStream * HTBlackHole (void); |
|
extern HTConverter HTBlackHoleConverter; |
|
</PRE> |
|
|
|
<H3>Through Line</H3> |
|
|
|
This stream just pumps data right through. |
|
|
|
<PRE> |
|
extern HTConverter HTThroughLine; |
|
</PRE> |
|
|
|
<H3>Generic Error Stream</H3> |
|
|
|
The Error stream simply returns HT_ERROR on all methods. This can be |
|
used to stop a stream as soon as data arrives, for example from the |
|
network. |
|
|
|
<PRE> |
|
extern HTStream * HTErrorStream (void); |
|
</PRE> |
|
|
|
<H2><A NAME="write">An ANSI C File Writer Stream</A></H2> |
<H2><A NAME="write">An ANSI C File Writer Stream</A></H2> |
|
|
This function puts up a new stream given an open file descripter. If the file |
This function puts up a new stream given an open file descripter. If the file |
Line 140 value is defined in <A HREF="HTAccess.ht
|
Line 107 value is defined in <A HREF="HTAccess.ht
|
#endif |
#endif |
</PRE> |
</PRE> |
|
|
End of declaration module |
<HR> |
|
<ADDRESS> |
|
@(#) $Id$ |
|
</ADDRESS> |
</BODY> |
</BODY> |
</HTML> |
</HTML> |