TCP/IP sockets are a polled mechanism on most OS's (there are a few
exceptions, but then these are non-standard and not applicable to the Palm
organizer). The best you can do is to do a select()-style call
periodically in your event loop and have it time out. If data comes in,
then you can either handle it right then and there or format it into an
event (or several events, depending on your algorithm) and queue them for
your application.
A good reference is Volume I of "Unix Network Programming" by W. Richards
Stevens. Combined with the documentation provided by Palm computing you
should be able to make this work. Rhode's book also gives you some extra
info for network programming on the Palm.
Hope this helps.
At 06:57 PM 3/12/00 -0500, you wrote:
>I am making a client application that uses TCP/IP and a binary protocol
>to talk to a network server.
>Basically I open a socket and connects to the server socket.
>My question is what are the different modes supported by the NetLib
>libraries in which I can open the client socket.
>The requirement is to read and write data asynchronously. Can I make my
>socket asynchronous? If so, how do I get signals for different events.
>I do not want to block socket or do regular polling.
>Is there a way out.
>
>thanks,
>yogesh
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palm.com/devzone/mailinglists.html
----
Tom Frauenhofer, [EMAIL PROTECTED]
NOTE: Yahoo assists piracy via its auction sites
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html