Chida,
I just started playing with INetLow, and it seems to work. At least I get no
error messages.
I made your change; thanks.
My question to you is: When I give it a URL to a Palm compatible web page,
what does INetLow.c do with the response. Anything? How can I verify that
it pulled back my web page?
Thanks,
Brad
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Chidananda Kakunje
> Sent: Monday, February 05, 2001 10:39 AM
> To: Palm Developer Forum
> Subject: INetLow.c example
>
>
> This example is really great and works good for me. However,there is
> bug in INetLow.c
>
> Which took me quite a while to figure out. Thought it would be worth
> posting it her so here you go.
>
> At line 1874 in InetLow.c
> else if (!error && bytesRead == 0) should be corrected as
> else if (!error && bytesRead != 0)
>
> --Chida
>
> static Boolean ResponseFormHandleEvent(EventPtr eventP){
> ....
>
> ....
>
> case inetSockReadyEvent:
> ....
> .....
>
>
> error = GetDataFromSocket(responseBufH,
> &bytesRead,
> MAX_RESPONSE_SIZE - totalBytesRead,
> timeout);
>
> if ((totalBytesRead += bytesRead) >= MAX_RESPONSE_SIZE)
> {
>
> //---------------------------------------------------
> // Resize the handle? Store the retrieved data and
> // retrieve the next data? ... I'll just error out
> // for now.
>
> //---------------------------------------------------
> error = inetErrBufTooSmall;
> }
> else if (!error && bytesRead == 0) //Correct it as else if
> (!error && bytesRead != 0)
> {
> ;;;;;;;
>
>
>
>
>
> }
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/