Registering Events....

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.

DO you know what the problem might be... 
Do I need to initialize the net object of the stream using HTNet_newClient() ?

I am using VC++ 4

Thanks...

Received on Monday, 29 July 1996 22:28:33 UTC