On Tuesday 04 February 2003 01:59 pm, Chris Faherty wrote:
> On Tuesday 04 February 2003 10:04 am, RaNo wrote:
> > 3) Exit my application
> > 4) Go back to my application without establiching connections
> > 5) Call NetLibClose, this time: immediate=true
> >
> > does not disconnect
>
> NetLibFinishCloseWait(refnum);
Let me clarify a little.. CLOSE-WAIT is the state which NetLib enters when
you elect not to disconnect immediately. This is kind to the user as it
allows them to choose the appropriate disconnect timeout, which varies
widely from service to service; for example on my Treo it can stay in
CLOSE-WAIT indefinitely without harm, or at least for hours at a time.
Anywhoo, here is a quote from the Palm Knowledge Base:
It's recommended that you allow the net library to enter the close-wait
state. However, if you do need the net library to close immediately, you
can do one of two things:
* Set NetLibClose's second parameter to true. This parameter specifies
whether the library should close immediately or not.
* Call NetLibFinishCloseWait. This function checks the net library to
see if it's in the close-wait state and if so, performs an immediate
close.
--
/* Chris Faherty <[EMAIL PROTECTED]> */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/