|
-
Nov 27th, 2009, 11:54 PM
#1
Thread Starter
Lively Member
Re: File transfer problems
I have resolved my problem. For those who may end up with my same problem in the future this is how I fixed it.
While I am far from a 'networking' specialist and not exactly sure how it works this is what happened.
Sending 10,000 bytes at a time to my target server from beginning to end of the file. Without a delay in receiving the bytes the server sometimes received parts of the file out of order. Meaning when I wrote the receiving bytes to a file I was writing the bytes in the incorrect order. My fix was to send the part # of the file with the 10,000 bytes. The first 10,000 would be part 1, 20,000 part 2 and etc. On the server I would keep track of the current part the file is expecting so if the part received wasn't the next part it would simply wait and hold that data until the server caught up the the correct part.
Ideal way to do it? I have no idea, but it works.
-
Nov 30th, 2009, 05:52 PM
#2
Junior Member
Re: [RESOLVED] File transfer problems
can you post full code for CLIENT/SERVER file transfer program
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|