You could set your timeouts on the NetLibSocketClose and
NetLibSocketConnect to something like 50 or 60 or something...
Do you do a NetLibSocketListen before your other units connect?
You could also do a complete shutdown with NetLibSocketShutdown.
Some way, that unit needs to disconnect if another 1740 is to get
access to the server. Perhaps you could rework your recieves to
have a timeout? If the 1740 doesn't get a packet before the
timeout is met, you could close the socket and listen for a new
connection.
Hope that helps!
-Rus
>-----Original Message-----
>From: DCU [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 10, 2000 1:49 PM
>To: Palm Developer Forum
>Subject: Re: Multiple TCP connects
>
>
>Rus,
>
>Thank you for your response. The error on the server side is
>"the previous
>socket closed abruptly". To disconnect I am using the following code:
>
>=================================================================
> short SocketCloseErr;
> int error;
>
> error = NetLibSocketClose
>(NetLibOpenRef,theSocket,-1,&SocketCloseErr);
> if(error != 0)
> {
> return SocketCloseErr;
> }
>
> theSocket = NULL;
> return 0;
>=================================================================
>Thanks,
>
>Carlos
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/