Hi All,
I'm trying to use the below to set the socket I/O to non-blocking.
This is what I have, and it doesn't work. ;) I know the
void* optValueP (&value) and UInt16 optValueLen (sizeof(value))
are way off. I'm pretty sure the rest is okay. How do I get this to work?
;)
value = 1;
// Try to set to NONBLOCKING..
result = NetLibSocketOptionSet(AppNetRefnum, sockRef,
netSocketOptLevelSocket, netSocketOptSockNonBlocking, &value,
sizeof(value), appNetTimeout, &error);
if ( result == -1 )
{
HostTraceOutputTL(appErrorClass, "NetLibSocketOptionSet() Failed..");
}
Thanks,
Joe Siebenmann
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/