Use select with sysFilesStdIn (or some such) in readfds. When you get it
then do evtGetEvent. But be careful, you must specify a timeout of 0 on the
evtGetEvent because some events are discarded internally so select may tell
you there is one there but evtGetEvent will not have one to return
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ford, Peter
Sent: Wednesday, February 09, 2000 13:21
To: Palm Developer Forum
Subject: RE: Sockets and Events
> -----Original Message-----
> From: Bobby Kolev [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 09, 2000 3:22 PM
> To: Palm Developer Forum
> Subject: Re: Sockets and Events
>
> Use INetLibGetEvent instead of EvtGetEvent and look for
> inetSockReadyEvent.
> I think that's when you have sent a request and are waiting for the
> response.
> More info in reference.pdf for SDK3.5 page 774.
>
> I don't think the server could initiate the thing, but you can check that.
>
------------
I don't think this helps. I'm currently using NetLib, not INetLib -
as far as I've been able to tell, INetLib doesn't exist on anything but Palm
VII (correct me if I'm wrong though). In fact, I tried to use INetLib before
I was aware of NetLib, and had instant problems - SysLibFind() fails for
"INet.lib" on a Palm Vx.
Looking at the documentation, there doesn't seem to be a NetLib
equivalent of INetLibGetEvent(). I suspect this means I'm going to have to
do it the hard way 8-(
Pete
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html