DCU wrote:
> I am developing Socket applications for the palmos. I am currently having
> problems with closing a socket, as they do not seem to close with the
> NetLibCloseSocket command and this eventually creates a problem after 16
> data transmissions occur. The problem/error they I have is Too Many TCP
> connections. I am not sure why I get this error since I close the
> connection after every transmission. There should only be one connection
> open at any given time.
Try it.
if (sremote != 0) {
NetLibSocketClose(AppNetRefnum, sremote,AppNetTimeout,&errno);
while (NetLibSocketShutdown(AppNetRefnum, sremote, 2,AppNetTimeout,&errno)
!= -1)
;
}
sremote = 0;
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/