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.
Regards,
Bobby Kolev
www.beiks.com
----- Original Message -----
From: Ford, Peter <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, February 09, 2000 10:58 AM
Subject: Sockets and Events
> I'm in the process of building an app which connects to one of our Unix
> servers using a socket. It works pretty well but there's a problem. The
> client (that is, the app running on the Palm) may be waiting for an event
> which could be, say, a button press. However, the server may produce a
> packet at any time, and my program needs to be able to respond quickly.
>
> Now ideally, since the whole programming model for the Palm is based
around
> event-driven programs, I want to be able to have an event fired when data
> arrives from the socket. That way my app can handle incoming packets when
> they appear. The way things are right now, all I can do is periodically
> check the socket to see if anything has come in.
>
> Does anyone know: are there any network events my program can listen for?
Do
> I need to hack the OS to make this work?
>
> 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