Threads are not available, but async sockets are. NetLib can broadcast a notification when there is certain activity on a socket. Check out NetLibSocketOptionSet(...,netSocketOptLevelSocket,netSocketOptSockNotice ,...). I can provide sample code as necessary.
-------------------- Jeff Loucks Work 425-284-1128 [EMAIL PROTECTED] Home 253-851-8908 [EMAIL PROTECTED] Mobile 253-691-8812 -----Original Message----- From: Henk Jonas [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:37 PM To: Palm Developer Forum Subject: Re: Asynchronous http functionality Hi Caspar, unfortunately, you don't have threads available for developers in Palm OS 5 (except the sound thread). But you could periodically check the state of your net work connection during a nilEvent. You would then have to process the http response at your own. But this shouldn't be a great deal. Regards Henk Caspar Heiden, vd wrote: > I recently bought the http lib form pdadevelopers.com, not realizing > it would use blocking functions. > > For the application I'm working on it is absolutely necessary to have > asynchronous communication: > - I post a request to a server and give control flow back to the > main loop of the app. > - The request is processed in the background by a separate (OS -) > thread > - As soon as a related event occurs a callback funtion is called > > Is this possible on OS 5? For example using Bluetooth and a > GPRS-phone? Can anyone give me tips, pointers to sample programs, etc? > > Thanks & regards, > > Caspar > -- ------------------------------------------------------------------------- Henk Jonas Palm OS (r) certified developer [EMAIL PROTECTED] www.metaviewsoft.de ------------------------------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
