You still have to close the socket after setting this parameter.   We set
the linger flag first when setting up the socket, then do the necessary
operations, then close the socket.   We can open 1 socket at a time as fast
as cpu will take it.  We've never tested multiple sockets open - we don't
need that feature.

If you are, you should post the whole socket operations, as this should work
fine.
--------------------------------------------------------------------
Gary Gorsline
Easy Business Software
========================== End of Message ==========================

----- Original Message ----- 
From: "T." <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 9:21 AM
Subject: netErrTooManyTCPConnections


> Hi group, I've reviewed the many postings on this problem and am using:
>
>  NetSocketLingerType linga;
>  linga.onOff = true; //true means on
>  linga.time = 0; //seconds.
>  result = NetLibSocketOptionSet( netLib
>            , socket
>            , netSocketOptLevelSocket
>            , netSocketOptSockLinger
>            , &linga
>            , sizeof(linga)
>            , timeoutTicks
>            , &err
>            );
> to force each socket to shut down.  I'm also using a SysTaskDelay(5) to
> allow the OS a chance to work, but I continue to rec the
> netErrTooManyTCPConnections error after about 16 iterations of a send
loop.
> Has there been any new insight on this?  I'm using Palm 5, Codewarrior 9,
> and the Clie PEG NZ-90.  Thanks for any thoughts.
>
>
>
> -- 
> 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