Be aware the linger solution code will NOT work on PalmOS 5. There is a byte
order issue..
To quote palmsource:
"There is a byte swapping bug which prevents the linger setting to get set
in the OS5.x. There is no fix for this issue at this time but you may want
to try swapping the bytes as a workaround to see if that helps you resolve
this issue.

You should swap the values... NetLibSocketOptionSet() is assuming the
NetSocketLingerType is a UInt32 instead of twn Int16s (on/off and time).

Karran Khan
Palmsource"

His suggestion worked on 5.x



"Alexandre Barreto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I have asked this many times here
> but still no anwsers
>
> my progrman conectas many sockets but not at the same time ( there is just
4
> sockets)
> so it conects do what it have to do and disconect it.. but after a while,
14
> - 16 times
> i can't conect any other socket.. i ways get conection refused error
> the socket accept  get to timeout.. no amther what timeout i put on it..
> the prob is plam site... since the cliente is a ftp server i'm doing a
> active ftp
>
> i need a light on this plz
> thnx
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>



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

Reply via email to