If you mean "how to set socket to non-blocking", then;
Int16 SetSocketBlocking(NetSocketRef s, Boolean fBlocking)
{
// Blocking flag
Int16 option = fBlocking ? 0 : 1;
// Set socket blocking or nonBlocking
return NetLibSocketOptionSet(
NetLibRefnum,
s,
netSocketOptLevelSocket,
netSocketOptSockNonBlocking,
&option,
sizeof(option),
NetLibTimeout,
&NetLibErrno
);
}
On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
CAn somebody tell me how to use the function NetLibSocketOptionSet to make a
non-blocking connection. Do we have to register this or it is used simply by
calling this function? and i don't understand how to fill the two parameters
void *optValueP, UInt16 optValueLen. Could somebody provide some example on
how to use this?
Thank you
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
yisdersomenimororsisasisdenderisorsis?
Jeff Loucks
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/