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/

Reply via email to