- From: Henrik Frystyk Nielsen <frystyk@w3.org>
 - Date: Thu, 08 Aug 1996 15:15:01 -0400
 - To: Saadeddine Mneimneh <saadico@ceci.mit.edu>
 - cc: www-lib-bugs@w3.org
 
Saadeddine Mneimneh writes:
> 
> I am trying to register a request for a read event...
> Is this the right way of doing it?
> 
> 
> 
>      	  . . . 
> 
> 
> 1.    HTLibInit("test","1.0");
> 2.    HTRequest * request= HTRequest_new();
> 3.    HTEvent_register(request->net->sockfd,request,(SockOps)FD_READ,cbf,1);
> 
>           . . . 
> 
> 
> 
> 
> where cbf is my callback function.
> 
> I am getting the following error at compilation:
> 
> use of undefined type '_HTRequest' for the 3rd line.
This is because you are not supposed to use the request object as a C 
structure - it works just like a FILE object which is opaque to the caller. 
I don't quite see what type of function you are trying to get - have you 
checked the latest version of libwww from
	http://www.w3.org/member/WWW/Library/
it has many more functions to do downloads and uploads of documents. You can 
find them all in the module
	http://www.w3.org/member/WWW/Library/src/HTAccess.html
-- 
Henrik Frystyk Nielsen, <frystyk@w3.org>
World Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Thursday, 8 August 1996 15:15:03 UTC