<[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi Developers and Palm Gurus,
>
> I have just started a Palm Development. I want to take a data from a
> server. Now I tried the Net Library. It works fine for me. I can take a
> data from a server.
> But its blocking my App. I am not able to do anything unless I receive
> data thrg my socket. ( NetLib dont support Asynchronous Events??? )
Set your socket in non-blocking mode.
Here is a snip of code:
// Make the socket non-blocking
ucharOptValue=1;
intRetVal = NetLibSocketOptionSet(guintNetLibRefNum,
socSocket,
netSocketOptLevelSocket,
netSocketOptSockNonBlocking,
&ucharOptValue,
sizeof(ucharOptValue),
-1,
&errError);
--
Regis St-Gelais
www.laubrass.com
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/