What is returned by the errP parameter in the NetLibReceive call? This will give you a better idea of why NetLibReceive is unhappy.
Setting non-blocking mode is accomplished by: flag = true; i16Result = NetLibSocketOptionSet(u16libRefNum, i16socketRefnum, netSocketOptLevelSocket, netSocketOptSockNonBlocking,&flag, sizeof(flag), i32Timeout, errP); This should be done just after the call to NetLibSocketOpen and just before the call to NetLibSocketConnect. Non-blocking mode can be read back by using NetLibSocketOptionGet. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
