Advertisement

Data lost in file transfer?!

Started by September 24, 2002 12:19 AM
1 comment, last by yungivan 22 years, 4 months ago
hi, I''ve solved the binary file transfer problem, and here is another. I''m trying to ''cut'' the binary file into packets, and send through the network, the receiver side merges them to form the original file. I have made acknowledgement after each packet is transferred. It works fine with small file (1-2MB), but when I try a larger one, say 60MB, it failed. The file received is larger than that of the original one, why is that? what is the possible reason? Thank you!
UDP? TCP? Need more details on your handshake and send methods.
Martin Piper
Advertisement
i got it working fine, once, using tcp, and tested it w/ a movie over my lan. how are you writing out the file? i used FILE*''s and they worked great. i just had a packet size #defined, read that much data in on the server, sent it, recv''d it on the client side, and wrote out the #defined amount of data from the packet. it was pretty simple & straightforward.

This topic is closed to new replies.

Advertisement