Results 1 to 5 of 5

Thread: [RESOLVED] File transfer problems

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    70

    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.

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    22

    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
  •  



Click Here to Expand Forum to Full Width