|vanitasvitae 9503e0ef1f||3 years ago|
|gradle/wrapper||3 years ago|
|src/main/java/de/vanitasvitae/sync_client||3 years ago|
|.gitignore||3 years ago|
|README.md||3 years ago|
|build.gradle||3 years ago|
|gradlew||3 years ago|
|gradlew.bat||3 years ago|
|settings.gradle||3 years ago|
This application demonstratest the possibilities of Jingle File Transfer via XMPP. xmpp_sync can be used to mirror the contents of one directory across several computers.
Since some of the code I wrote for Smack is not yet merged, you'll have to build it yourselves.
git clone firstname.lastname@example.org:vanitasvitae/Smack.git cd Smack git checkout jingle3 gradle install
Next clone the repository of xmpp_sync.
cd .. git clone email@example.com:vanitasvitae/xmpp_sync.git cd xmpp_sync gradle build
The resulting executable jar file can be found in
xmpp_sync has two modes: Master and Slave mode. A client started in master mode will send files out, while clients in slave mode will receive files.
In order to use the program, you need at least two XMPP accounts (which might be on different servers). I recommend using a server, which supports Socks5 proxies.
The application has the following options available when being started.
usage: client [-d] -D <arg> [-h] [-m] -p <swordfish> -u <firstname.lastname@example.org> -d,--debug Print debug messages to the console. -D,--directory <arg> Directory which will be synced. -h,--help Display this help text. -m,--master Start in master mode. When this flag is missing, the client will be started in slave mode. -p,--password <swordfish> Password of the XMPP account. -u,--username <email@example.com> Barejid of the XMPP account.
So in order to start the application in master mode, you can use the following command:
java -jar xmpp_sync.jar -u firstname.lastname@example.org -p password123 -m -D master/directory
If you want to start the application in slave mode instead, just leave out the
There is a number of commands available to control the application once it is started.
/help Display a help text /add <email@example.com> Add a contact to the contact list (roster). /trust <firstname.lastname@example.org> Trust a contacts OMEMO fingerprints. /sync <email@example.com> Add a contacts device to the sync list. /quit Stop the application.
Once you added a contact to your roster, you can add its devices to the sync list. Whenever you now drop a file into the master folder, it will be sent out OMEMO encrypted to all slave devices on the sync list. The OMEMO encryption is done using Smack's OMEMO capabilities, I implemented prior to GSoC and my JET specification which was part of my project.