|I am fully confused.. Again I am explaining you...This is my problem.
I have a file(let us say 5MB size). I need to send this file over serial port to a client.
As I can't send whole file at a time, I am reading the file into a structure(let us say 50 bytes), and sending.
After receiving 50 bytes of data the client will send back some acknowledgment. If acknowledgment is proper, I will send the next 50 bytes of data. Otherwise I will send the previous 50 bytes of data.
So this cycle repeats until the end of the file.
Now tell me how can I proceed. Am I going in a right path.
Thanks in advance