One way would be to save the socket handle in a feature. Then, any app could
find the socket handle in the feature and use it. Be sure to properly manage
NetLib, so that it doesn't close out from under you.

--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: Asher Aslan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 3:42 AM
To: Palm Developer Forum
Subject: How to get a ref to an opened socket?


Hello Everyone,

My application opens a TCP connection to the server via socket.
Closing the app without explicitly closing the socket make the socket
still be connected and ready
to receiving data (via registering the app for sockets notifications).

My question is:
After I closed my app and left an opened socket, in which way can I
get a ref back to the connected socket after user re-launching the
app?

Thanks,
Asher

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to