Set LingerOpt.onOff to true.

(Search for "linger" and you will find...)

Matt

----- Original Message -----
From: "Dinesh Kumar" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 5:49 PM
Subject: Lingering behaviour not resolved even after turning linger Off and
using SysTaskDelay after close


>
> Hai all,
>         Following is an excerpt from my code where i'm trying to resolve
the
> Lingering behaviour
> Can any one plz tell me where am i going wrong ..and if not, what else
could
> be the Problem ..
>
>
>
> // Inside Connect My Funtion
>
> NetSocketLingerType LingerOpt;
>
>    NetLibSocketOpen()
>
> LingerOpt.onOff  = 0;
> OptionSet = NetLibSocketOptionSet( gP->AppNetRefnum, gP->SocketID,
> netSocketOptLevelSocket, netSocketOptSockLinger, &LingerOpt,
> sizeof(LingerOpt), i32Timeout, &hErrorCode);
> if(hErrorCode!=0)ErrAlert(hErrorCode);
> //here NetLibSocketOptionSet is always successfull : i don get any
ErrAlert
>
> NetLibSocketConnect()
>
>
>
>
> /// Inside My close Function///
>
> NetLibSocketShutdown()
>
> NetLibSocketClose()
>
> SysTaskDelay(3*SysTicksPerSecond());
>
>
> --
> 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/

Reply via email to