Fergal Moran asked: > My question is how does my read callback function > know when the pdb data is finished coming and it > should go back to waiting for control messages?
Sachin Kochhar answered: > I think u will have to put some demarker in your protocol that marks the end > of data because its expected from the read callback function to tell > ExgDBRead that there is no more data by doing (*readP = 0). Fergal then asked: > OK - I thought as much - so if I set *readP to 0 ExgDBRead will know to exit then? According to the docs: > ExgDBRead stops calling the read > callback function after 0 is returned in sizeP. I'd use a length prefix rather than a terminator. Any byte can appear within a record or resource. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
