Giter Site home page Giter Site logo

ftp's Introduction

Multithreaded File Transfer Server

Table of Contents


Getting Started

Both the server/server.py and client/client.py files have macros (variables) for the Server's IP and Port.

By default, the IP Address (the SERVER Macro) is set to the local host. So client tries to connect to it's local host (which may not work if the server is on a different machine).

If you want to run the server and client from different machines, replace the macro with the IP Address of the machine on which the server is running

Important

Make sure you have read and understood the section above before you proceed to set up the server and client

  • Running the Server

    The directory in which the server folder is placed, will be treated as the "server"

    To start the server, run :

    python server/server.py

Important

Execute this command from the "server" directory to ensure files are stored and fetched from the correct directory.


  • Running the Client

    You can keep the client.py file anywhere except for the same directory as the "server".

    To connect to the server, run :

    python client.py


Commands

usage : <cmd-name> <args>

    list  List all the files in the directory <dir-path>.
          If there is no second argument, then it lists the server's root directory
    usage : list <dir-path>


    get - Get the file named <file-name> that is stored on the server
    usage : get <file-name>


    put - Store the file named <file-name> on the server
    usage : put <file-name>


Features

  • Implemented

    • Concurrent client connections - Allow multiple clients to connect to the server simultaneously, improving scalability and responsiveness.
    • Upload (put) files - Allow clients to transfer files to the server.
    • Download (get) files - Allow clients to retrieve files from the server.
    • File locking - Implement file locking mechanisms to prevent conflicts when multiple clients attempt to access or modify the same file simultaneously.
  • Pending

    • File compression and descompression - Introduce file compression techniques to optimize storage space on the server and minimize data transfer times.
    • File encryption - Enhance security by encrypting files during transmission to protect sensitive data from unauthorized access.
    • Directory navigation commands
    • Transfer multimedia files - Extend file transfer capabilities to support multimedia files, so users can share images, videos, and audio files.
    • User authentication - Implement user authentication to authenticate users and restrict access of secure servers.
    • Improved server logging - Better server logging to record detailed information about client activities and server events for auditing and troubleshooting purposes.



ftp's People

Contributors

pandfun 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.