[EMAIL PROTECTED] wrote:
Hi Henk,
Thanks, Can you please explain what exactly I can do? I am new to Palm and did
not got it clearly. Sorry for that.
thanks in advance.
..
KiraN Puranik
Ok, your main app has a event loop, where you can get nilEvents every
there and then. Depends on your call of EvtGetEvent.
In every nilEvent you read a part of the answer from the server:
NetLibReceive () with a timeout of 0
you call it every nilEvent until your answer is complete.
UInt8 buffer[1024];
UInt32 size = sizeof(buffer);
UInt8 *ptr = buffer;
Int32 received = 0;
case nilEvent:
if (received < size)
{
Int16 got = NetLibReceive(refNum, socket, ptr, size - received, 0, ....);
if (got > 0)
{
ptr += got;
received += got;
}
}
Regards
Henk
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/