[Prev][Next][Index][Thread]
Re: HTInputSocket_getLine where is it in Libwww ver. 4.0pre7
-
To: Vu Nguyen <vu@isdnsys.com>
-
Subject: Re: HTInputSocket_getLine where is it in Libwww ver. 4.0pre7
-
From: Henrik Frystyk Nielsen <frystyk@w3.org>
-
Date: Mon, 18 Dec 1995 14:47:40 -0500
-
Cc: "'www-lib@w3.org'" <www-lib@w3.org>
-
From frystyk@w3.org Mon Dec 18 14: 48:13 1995
-
Message-Id: <9512181947.AA15057@www20>
-
Reply-To: Henrik Frystyk Nielsen <frystyk@w3.org>
-
X-Mailer: exmh version 1.6.2 7/18/95
> Could someone kindly tell me which module the function =
> "HTInputSocket_getLine" is implemented? This func is used in the =
> httpd_3.0 code. Is it possible that it was renamed in Libwww ver. =
> 4.0pre7?
This socket interface has been removed from the 4.0 release of the Library as
it was not reentrant and didn't use the stream model. In version 4.0, all
input and output is handled using streams. This means that there is only one
read funtion (HTSocket_read() in HTSocket.c) and one write function (The
HTWrite stream in HTWrite.c) for writing to a socket.
It is correct that Daemon 3.0 uses this interface, but the way to solve it is
to create an input stream a la the HTTPStatus stream in HTTP.c. The difference
is that the server stream has to read the HTTP RequestLine whereas the
HTTPStatus stream reads the ResponseLine.
--
Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA