Accessing sections of a resource
I want to be able to explore a feature of resumable downloads. For example, downloading a file and the connection is broke or the user stops it temporarily. Through sockets and C I want to be able to do it, but honestly, I''m not sure how to begin researching this properly. Resources or links would be great, thanks in advance.
You need to look into information about specific protocols, like HTTP or FTP, depending on which is relevent to your needs. FTP, for example, has a simple resume command. I believe HTTP might have a similar request code.
On a resume, the server is told the size of the file currently and then it begins sending the file from that point. It might be a good idea to do a checksum of the partial file and comparing it on the server with a checksum of that section.
On a resume, the server is told the size of the file currently and then it begins sending the file from that point. It might be a good idea to do a checksum of the partial file and comparing it on the server with a checksum of that section.
quote:Original post by ironfroggy
You need to look into information about specific protocols, like HTTP or FTP, depending on which is relevent to your needs. FTP, for example, has a simple resume command. I believe HTTP might have a similar request code.
On a resume, the server is told the size of the file currently and then it begins sending the file from that point. It might be a good idea to do a checksum of the partial file and comparing it on the server with a checksum of that section.
Hmm, that is my problem then. I should have realized that this has to dependent on the protocol. Hopefully the rfc''s will have some info in there on this, specifically http.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement