Git Product home page Git Product logo

exchange-files's Introduction

Exchange-Files

Distributed systems

Goals

In the present work we intended to implement a platform for sharing music files in the form of client/server in Java using sockets and threads.

Application

File exchange platforms like SoundCloud allow musicians to share their creations directly with their fans. For this purpose, they can upload music files accompanied by various meta-information (title, author, interpreter, genre, ...). Meta-information is used so that listeners are aware of shared files and can perform searches. Having found the desired files, they can then download them for later use.

Bearing in mind that the files to be exchanged are of considerable size, usually with several MB, the implementation of these systems has to pay particular attention to the resources consumed with the storage, manipulation and transmission of these files. In particular, it is important to limit the number of simultaneous operations that can be carried out in order not to overload the system and to maintain a relative fairness between the different users.

Client & Server

A client has been made available that offers a user interface to support the developed features. This client was written in Java using TCP threads and sockets.

The server was also written in Java, using TCP threads and sockets, keeping in memory the information relevant to the developed characteristics (except the contents of the files themselves), receiving and input from clients, as well as reaching them the desired information. The protocol between client and server was text-based, line-oriented (except for the content of the files themselves). In order for the server not to be vulnerable to slow clients, each thread does not request more than one socket.

Functionalities

  • Authentication and User Registration
  • Publish a Music File
  • Perform a Music Search
  • Download a music file
  • Download Limit
  • Notification of new songs
  • Unlimited file size

Team

Gonçalo Pinto Nuno Costa João Parente
Gonçalo Pinto Nuno Costa João Parente
September 2019 - January 2020

exchange-files's People

Contributors

grp99 avatar

Watchers

 avatar

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.