Giter Site home page Giter Site logo

c-client-server's Introduction

C - Client Server

preview

Ce projet est un mini lanceur de commande, sous la forme d’un serveur qui répond aux requêtes émises par des clients. Le serveur gère a la fois un nombre de client limité par le nombre de thread que créé le démon. Lorsqu’aucun thread n’est disponible pour travailler le client reçoit un message pour le prévenir qu’il devra alors retenter une connexion plus tard.

Compilation

  • Il faut ouvrir un terminal sur le "Projet SE" et faire make dans le dossier server pour compiler le server .

  • Ouvrir un autre terminal dans le dossier "client" et faire make pour le compiler.

Utilisation

  • Lancer le serveur pour écouter des requêtes:

    ./server.

  • Lancer des commandes depuis le client :

    ./client -c < commande > -a1 < arguments >

Le résultat s’affiche à l’écran.

On peut lancer plusieurs clients simultanément, chacun recevant le résultat de sa commande sur son terminal et se terminant aussitôt.

Pour mettre fin au serveur il suffit de faire CTRL+C dans le terminal du démon.

Pour plus d'informations, consulter le manuel technique

c-client-server's People

Contributors

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