Git Product home page Git Product logo

file-sharing-network's Introduction

File sharing network

Overview

A client-server application for transferring files over a network using the TCP protocol.

Commands in the user console: list - list of shared files, get filename - upload the file, exit - exit the application, help - output possible commands.

Realization

Clients connect to the server over TCP, after connecting , they automatically send to the server a repository of names of shared files (stored in the same folder), as well as hashes for the contents of these files. If the contents of the files match, their hashes match, and the server stores a repository of unique files on the network.

The client can request a repository of files shared on the network and start downloading any of them through the server. If the same downloaded file is on 2 or more clients, the download is performed simultaneously from all clients, alternating blocks by 1 KB. Thus, each client transfers the file to the network only partially.

Dependencies

sudo apt install libboost-all-dev libssl-dev -y 

Build

From the root of the repository:

mkdir build && cd build
cmake ..
cmake --build .

Run

To start the client:

./build/client/client

To start the multithreaded server:

./build/multithreaded_server/multithreaded_server

To start the asynchronous server:

python3 ../asynchronous_server/asynchronous_server.py

file-sharing-network's People

Contributors

binoll avatar

Watchers

 avatar

file-sharing-network's Issues

Processing the "list" command.

Implement the processing of the "list" command on the client and server. At the same time, after connection, the client automatically sends a list of shared files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.