File:  [Public] / libwww / Library / src / HTWriter.html
Revision 2.15: download - view: text, annotated - select for diffs
Tue Sep 12 23:40:30 1995 UTC (28 years, 9 months ago) by frystyk
Branches: MAIN
CVS tags: v4/0pre3, HEAD
Most of new version

<HTML>
<HEAD>
<TITLE>Socket Writer Stream</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen,  9-Sep-1995 -->
</HEAD>
<BODY>

<H1>Unix File descriptor or Socket Writer</H1>

<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This version of the stream object just writes to a socket. The socket
is assumed open and closed afterward.There are two versions (identical
on ASCII machines) one of which converts to ASCII on output. We have
to have the Net Manager involved as we want to have control of how
many sockets we are using simultanously. This means that applications
should use the <A HREF="HTFWrite.html">ANSI C FILE writer stream</A>
for writing to an output. Proxy servers will have to go through the
Net Manager anyway, so this will not be a problem for them.<P>

This module is implemented by <A HREF="HTWriter.c">HTWriter.c</A>, and
it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
Reference Library</A>. <P>

<PRE>
#ifndef HTWRITE_H
#define HTWRITE_H

#include "HTStream.h"
#include "HTNet.h"

extern HTStream * HTWriter_new (HTNet *net, BOOL leave_open);

#ifdef NOT_ASCII
extern HTStream * HTASCIIWriter (HTNet *net, BOOL leave_open);
#endif

#endif
</PRE>
end
</BODY>
</HTML>

Webmaster