rdiff, deltacopy, rsync - some relevant code in delphi available?

Hi there,

I'm trying to write some code in Delphi which is comparing the delta diffs in binary files like rdiff, rsync and deltacopy does. Then, after creating the 'diff' apply it on some 'old' file in a different directory/server - just like we know it with rsync.

I have the deltacopy source, but my understanding of C++ is even below my delphi knowledge ;) So, experts, I ask you! Does anyone have some short samples how to get, isolate and apply delta diffs of binary files?

many thanks in advance!

icecoke
LVL 1
real_icecokeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

real_icecokeAuthor Commented:
... of course I meant: I have the source of rsync... ;) I know deltacopy is the wrapper....
0
Eddie ShipmanAll-around developerCommented:
rsync isn't for applying diffs to files, it is to sync directories.
0
real_icecokeAuthor Commented:
I'm sorry if I did not wrote my question correct.

Of  course rsync is not 'for' applying diffs to files. But it uses an internal mech (with delta diffs)  to just transfer the changed parts of a binary file from a to b while it does syncing directories. This mech is of interest for me.

In general it must be that way:
You have a client and a server, both have a different version of file A.
The client does some hashing of different parts of the file, the server does the same, than both sides compare it hashes and just the changed parts are transfer from client to server and applied to the server file A.

This would be easy if the length of the files are equal, but it's going to be interesting, when the length changes etc. The most interesting part is: you DON'T want to compare the files byte by bytes, cause in that case you would save yourself many bytes in transfering if you just sent the whole file up.... We should not forget that these different files are on different servers and my main interest is to save bytes at the transfer.

I hope this clears my question a little bit more.




0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

real_icecokeAuthor Commented:
hmm, experts, I'm suprised - no response?
Ok, for who are interested in a solution for this problem: take a look into msdelta.dll and mspatchc(a).dll - these dlls (especially msdelta.dll) provide delta compresion funcs, saving you tons of bytes in applying patches etc. All found in the microsoft dev SDK.

Anyway, thanks for trying to help!
icecoke
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eddie ShipmanAll-around developerCommented:
Do yu have Delphi units for using these DLL's? If so, why don't you post them for all to use?
0
real_icecokeAuthor Commented:
the jedi project has them
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.