Merged
Conversation
Add documentation for code.
Example of how to listen to data is given in the last part of Server.py
Make the watchdog observer a class object to implement logic avoid duplicate calls.
Add readBFFromBtyes
Rename FileMerge to Synchronizer
Add getNfromSize func to get N give size of BF
…er class for handling incoming requests.
This isn't working completely as expected yet, as this triggers an infinite loop and the contents keep getting exchanged between the two files.
… avoid infinite loop.
…ceived in a request.
Cause: Didn't include freq parameter during validate func
Cause: Line number wasn't updated.
…n fix it. If the hash values differ, then we have to send the entire file to keep both the files in sync with each other. Closes #3
This can happen, for example when a peer presses CTRL+C. This makes the program crash for the other user, but now we catch those exception print "nice" (relatively nice :D) error messages. Closes #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR essentially brings the changes from the dev branch to the master branch.
There is a basic working version of file synchronization.
One server starts the other user joins using the IP address of the first one.