Giter Club home page Giter Club logo

ftp's Introduction

Mini projet de réseaux : serveur de FTP en TCP

INSTRUCTIONS DE COMPILATION

Compilation : se rendre dans la partie voulue (unclient, multi-clients, ou bonus) et taper : "make" : pour compiler le serveur (mainS) et le client (mainC)

INSTRUCTIONS DE DEMARRAGE

Pour démarrer le serveur : ./mainS (0 = rand, > 1024) [repertoireDL] Par exemple : ./mainS 0 : pour choisir un port par défaut et le répértoire de téléchargement par défaut (../repDL/) ./mainS 10000 ../download : pour choisir le port 10000 et le répertoire download du répertoire parent

Pour démarrer le client : ./mainC <IPServeur|NDDServeur> Par exemple : ./mainC localhost 10000 : pour se connecter sur le serveur en localhost sur le port 10000 ./mainC 10.0.10.5 45120 : pour se connecter sur le serveur d'IP 10.0.10.5 sur le port 45120

INSTRUCTIONS D'UTILISATION

Pour le serveur :

  • unclient : rien
  • multi-clients : appuyez sur la touche entrée pour voir le nombre de téléchargement par fichier
  • bonus : : idem que multi-clients

Pour le client :

  • unclient : tapez HELP pour voir les commandes disponibles et leurs descriptions
  • multi-clients : idem que unclient
  • bonus : : idem que unclient
EXEMPLES D'UTILISATION DU CLIENT

HELP : affiche les commandes disponibles et leurs descriptions

GETLIST : affiche les fichiers pouvant être téléchargés du serveur

GET fichier1 : télécharge le fichier fichier1 dans le répertoire courant GET fichier1 -DIRL .. : télécharge le fichier fichier1 dans le répertoire parent GET fichier1 fichier2 : télécharge les fichiers fichier1 et fichier2 dans le répertoire courant GET fichier1 fichier2 -DIRL .. : télécharge les fichiers fichier1 et fichier2 dans le répertoire parent

SEND fichier1 : téléverse le fichier fichier1 du répertoire courant sur le serveur SEND ../fichier1 : téléverse le fichier fichier1 du répertoire parent sur le serveur SEND fichier1 ../fichier2 : téléverse le fichier fichier1 du répertoire courant et le fichier fichier2 du répertoire parent sur le serveur

QUIT : ferme le programme

ftp's People

Contributors

alexdu98 avatar viampietro avatar

Watchers

 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.