Hello,

I have problem with NetLibSelect function. On device, the function allways returns number 2 even if there's no data in the socket. On emulator it works fine - it waits for conenction to the socket. I searched the conference for this issue, but i didn't find any solution regarding my problem.
Can someone help me, please?

Following code works fine in Palm emulator, but doesn't work on device.

NetFDSetType none;
NetFDSetType readfds;
Int16 numfds;

netFDZero(&none);
netFDZero(&readfds);
netFDSet(socket, &readfds); // socket

numfds = NetLibSelect ( libRefNum, socket+1,
   &readfds, &none, &none, timeout, errP);
if (numfds > 0)
{
   if (netFDIsSet(sock, &readfds))
...

Thanks
Zozo

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to