PalmOS < 6.0 doesn't support threading. I believe you can do a search on the archives and this item has been covered before. The short synopsis is that the only way to do this is to poll NetLib by setting a small (or 0) timeout in the function, and modify your event loop to periodically call it to see if anything has happened. FYI, it is probably better to poll using NetLibSelect, and then if that returns any NetLib activity, call the appropriate functions. In your case, NetLibSocketAccept. Does that make sense?
-Jon -------------------------------------------- Jonathan Hays Palm OS Certified Developer http://hazelware.luggle.com -------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sam Leong Sent: Thursday, April 08, 2004 7:40 AM To: Palm Developer Forum Subject: hangs on NetLibSocketAccept until incoming connection made I am a new palm developer, I want to develop a server socket using NetLib. I use NetLibSocketListen to start to listen the incoming connection. Then I use NetLibSocketAccept to accept the incoming the connection, but my control hangs on NetLibSocketAccept until incoming connection made. I want to run it background or using some notify function to invoke the NetLibSocketAccept but I don't know how to do it. I also want to know Palm development support thread or not. If support, how to do it? Sam Leong -- 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/
