GithubHelp home page GithubHelp logo

tp3_network's Introduction

TP3_Network

Description

In this practical work, we have been asked to implement a system that allows text files to be sent to a “personal folder” and to request files at any time, in addition to registering new users. Thus, I develop two programs, a client and a server, where the client makes requests to the server, such as creating new users and storing files.

The client program sends the user's messages to the server, and prints the server response on the screen according to the message sent. This way, the client does not have data structures or functions, only has what is necessary to make the connection to the server, and can always be sending messages through the keyboard and printing the response on the screen. In addition, there was a timer that counted the time to receive messages, it was removed to allow the client program to be in an infinite loop, sending messages through the user and receiving response from the server.

The server program performs file manager implementation using the Dictionary data structure and an object. Python Dictionary is an abstract data type that associates a key with a value, in this work the key represents the file name and the value, the content. Use of the object is required to associate a user with their files, along with their contents, where the object represents the user registered in the system.

The compilation of the program is as follows:

python servidor.py <porta>
python cliente.py <IP/nome> <porta>

tp3_network's People

Contributors

anacarolina86 avatar

Watchers

James Cloos avatar  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.