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?
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).
If you close the socket with "linger" set, then the underlying socket
connection doesn't immediately close and allows a subsequent program to
re-open the socket very, very quickly. This is the proper way of doing
what you are trying to achieve rather than failing to close the socket.
Note: on Palm OS there is a low limit to the maximum number of open sockets
(perhaps four?), so failing to close a socket on exit will quite quickly
force the operator to reset the device.
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/