On Thu, 10 Feb 2000, Ford, Peter wrote:
> If it is indeed possible to have a background thread listening to
> the socket, and that thread can create and driect events to the foreground
> application, then this does make perfect sense. I'll be looking into it.
>
> Thanks for the brainwave ;-)
>
I'm in the process of implementing this sort of thing - though not using
the socket paradigm. My application is IrDA related and I face some of the
same issues as your's. What I'm doing is placing the IrDA code into a
'system library' which the application can open and close like it would
any other system library. When the IrDA callbacks are invoked (e.g.
IrIASCallBack) I'll stuff an event into the queue of the 'foreground'
application (when it's appropriate, of course).
Scott
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html