Download file over slow network

enum5

Member
Joined
Sep 19, 2006
Messages
7
Programming Experience
Beginner
Hi all,

I am new to network programming. My application downloads a file from server over a slow network using TCP/IP socket. The file size is about 500kb - 1mb. The network speed is 16-20kbps. The network connection is wireless and will disconnect sometimes. What my application must able to do is:

1. Reconnect back to server if connection disconnected.
2. Continue the file download after reconnect back to server.

Any good idea to implement this application? Is there any related article about file transfer over the network? Please advise. Thanks.
 
Verify file download correct and complete

Hi all,

My application uses TCP/IP socket to download file from server. How can I verify the downloaded file is complete and correct?
 
Because server(you) sent the file length information first receiver knows how many bytes received and left. You may implement functionality for the client to request a particular file from a particular byte position.
 
Back
Top