Establish a wifi connection.
Open and close a socket 64 times.
After that, i cannot open again a socket. I receive no error code from
NetLibSocketOpen, but it returns -1.
In order to open again a socket, i have to shut down the wifi connection,
and reconnect.
Whats going on ?
Thanks.
source code:
int i; char temp[maxStrIToALen];
Connect();
for (i = 0; i < 200; i++)
{
sock = NetUTCPOpen(Host, NULL, Port);
if (sock == -1)
{
StrIToA(temp, i);
FrmCustomAlert(WarningAlert, "Error. OpenCount: ", temp,
NULL);
break;
}
close(sock);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/