/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */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 ANSI C FILE writer stream 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.
This module is implemented by HTWriter.c, and it is a part of the W3C Reference Library.
#ifndef HTWRITE_H #define HTWRITE_H #include "HTStream.h" #include "HTNet.h"
extern HTStream * HTWriter_new (HTNet *net, BOOL leave_open);
extern HTStream * HTBufWriter_new (HTNet *net, BOOL leave_open, int buf_size);
#ifdef NOT_ASCII extern HTStream * HTASCIIWriter (HTNet *net, BOOL leave_open); #endif #endifEnd of socket stream declaration