Skip to content

eduardofischer/udp_filesync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

173 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UDP File Synchronizer

File synchronizer project for the Operating Systems II class at INF-UFRGS

Developed by:

Dependencies

Before compiling, make sure you have all the dependencies installed

On Debian based platforms, like Ubuntu:

sudo apt-get install libreadline-dev 

If you use a platform with yum, like SUSE:

yum install readline-devel

Build

Once you have installed all the dependencies, get the code:

git clone https://github.com/eduardofischer/udp_filesync.git
cd udp_filesync

To build the client and server binaries, run:

make

Usage

Start the UDP FileSync server by running:

./server [-p PORT] [-b MAIN_SERVER_IP]

Then you can connect a client using:

./client <username> <server_ip_address> [<port>]
  • When a client first connects to the server a directory named sync_dir is created in the client host.
  • sync_dir will then be automatically synchronized among all the client instances connected to the server.

Client CLI

Once the client is connected to the server, a command line interface becomes available with the following options:

upload <filepath> - Uploads a file to the users shared directory

download <filename> - Downloads a file from the users shared directory

delete <filepath> - Deletes a file to the users local sync_dir directory

list_server - Lists all the files in the users shared directory

list_client - Lists all the files in the users local sync_dir directory

exit - Disconnects the client from the server

About

File synchronizer project for the Operating Systems II class at INF-UFRGS

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors