My customer has a setup for downloading (via Web) a small amount every 15 seconds in three different batches of 40kb each.
Currently I am using WinHTTP in sync mode.
This waits until the web servers have done it's connection (varies between 1 and 3 secs each batch) a maximum of 9 seconds in total. The delay is in the internet connecting not the data speed because the size of the file makes hardly any difference.
The reason I used sync was I don't want to have the rest of the program running because I want all three to be fully received before I proceed to process the data before the next batches are received.
Its the equivalent to sending first names in the first batch, second in the second and addresses in the third. I need them all every time to match up
I am trying to cut down the overall download time.
My customers advises his server will handle all three requests without delay (as it is also servicing a number of other people) and so cut down the wait by one third so -
If I sent the first 2 as async and the third as sync, if the second one took longer the end of it could be missed.
If I used async for all three batches and they arrived 'together' how could I tell that all had been fully received before I started to process them. The time of each bus is not related to it's size but random 'happenings' in the internet beyond out control.
If the downloads do happen virtually at once how would I know batch which was which and put them into their correct 'slot' for processing?
Currently I am using WinHTTP in sync mode.
This waits until the web servers have done it's connection (varies between 1 and 3 secs each batch) a maximum of 9 seconds in total. The delay is in the internet connecting not the data speed because the size of the file makes hardly any difference.
The reason I used sync was I don't want to have the rest of the program running because I want all three to be fully received before I proceed to process the data before the next batches are received.
Its the equivalent to sending first names in the first batch, second in the second and addresses in the third. I need them all every time to match up
I am trying to cut down the overall download time.
My customers advises his server will handle all three requests without delay (as it is also servicing a number of other people) and so cut down the wait by one third so -
If I sent the first 2 as async and the third as sync, if the second one took longer the end of it could be missed.
If I used async for all three batches and they arrived 'together' how could I tell that all had been fully received before I started to process them. The time of each bus is not related to it's size but random 'happenings' in the internet beyond out control.
If the downloads do happen virtually at once how would I know batch which was which and put them into their correct 'slot' for processing?