This is an excerpt from Palm OS Companion2.pdf, p16, (sdk 4.0).


err = ExgPut(&exgSocket);

if (!err) {

    while (!err && sizeSent < size) {

        sizeSent += ExgSend(&exgSocket,bmpP,size,&err);

    }

    ExgDisconnect(&exgSocket,err);

}



Supposedly, it may whizz round the inner loop, and send pieces of the buffer
until it is all sent. My question is, how does it know where it is up to?
Does this only work if the call to ExgSend sends the entire buffer in one
go? Or does ExgSend store state information?



Shouldn't the call to ExgSend be



        sizeSent += ExgSend(&exgSocket, bmpP + sizeSent, size - sizeSent,
&err);



Comments anyone?



Matt




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to