All-
I am rewriting a set of routines that were originally built with the net
library to use the INet library on a Palm VII. Because of the structure of
the calling application, I am polling the status of the socket instead of
letting the main event loop manage the status. First off, is it true that
the inetStatusReceivingResponse status flag is only set once you call
INetLibSocketRead for the first time? Using the otaread sample as a guide,
I see that the data ready event arrives before the socket status changes to
receivingResponse. If I don't read data in response to the data ready event
(or in response to the inputReady boolean in SockStatus becoming TRUE), I
never get the receiving data status change. My routine basically loops
calling INetLibSockStatus, and I can see the status changing sequentially
all the way through to WaitingForResponse. It never changes to
ReceivingResponse unless I read some data when the status is
WaitingForResponse and inputReady is true. I just want to make sure this is
in fact the case, it seems a little odd that the flag really represents the
status of your interaction with the socket (namely, that you're reading data
from it), rather than something the socket is doing without you.
Next, if I change the socket type to HTTPS in the otaread sample and put a
secure url in, I get a chunk overlocked error. Is this a problem with the
emulator debugger or with the actual library (I assume the emulator
debugger...).
Finally, otaread opens a socket and then builds a GET with the full URL in
it. I had initially attempted to open the socket, connect it to the URL,
and then just build GETs with relative URLs. Can you keep your socket open
across gets/posts, etc., if you connect explicitly first?
Thanks very much in advance,
Will