IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage Perl Discussion :

using 3 sockets with files


Sujet :

Langage Perl

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Administrateur systèmes et réseaux
    Inscrit en
    Mai 2017
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Administrateur systèmes et réseaux

    Informations forums :
    Inscription : Mai 2017
    Messages : 1
    Points : 1
    Points
    1
    Par défaut using 3 sockets with files
    We will create 3 sockets two Servers and one Client : ServerA and ServerB and Client

    My Problem is that I don't know how to use files in sockets and perl and also I don't know how to create a communication between 3 Sockets
    I know only with Client/Server

    Is there anyone who can help me in doing this.

    This is the Instructions :

    The Client will send the string containing his name and his credit card number (Exemple : "Carl, 5321456855741") and wait.
    This String will be sent to ServerA with a communication protocol between Client and ServerA.

    Then ServerA will modify the information and make it in this form "Carl-5321456855741" then send it to ServerB.

    ServerB will verify if the informtion is correct or not by searching in a text file (created already and contain a list of names and Credit card numbers in this
    form "Name-CardNumber-Amount" in each line) :

    *) If it's correct (existing in the text file) ServerB will reply "Welcome $Name you have $Amount in your account" to ServerA and ServerA will send the
    same message received from ServerB to Client.

    *) If it's not correct (not existing in the text file) ServerB will reply "Sorry your informations is incorrect" to ServerA and ServerA will send the
    same message received from ServerB to Client.

  2. #2
    Rédacteur/Modérateur

    Avatar de Lolo78
    Homme Profil pro
    Conseil - Consultant en systèmes d'information
    Inscrit en
    Mai 2012
    Messages
    3 612
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Conseil - Consultant en systèmes d'information
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mai 2012
    Messages : 3 612
    Points : 12 469
    Points
    12 469
    Billets dans le blog
    1
    Par défaut
    Hello arekik,

    this is a French-speaking forum, you should ask questions in French.

    In addition, this looks like homework. Please do not expect us to do your homework for you, that would be a very bad service to you. We can help you if you encounter some difficulties while trying by yourself to solve your problem, we will not do the work for you.

    ________

    En français, brièvement: c'est un forum francophone, les questions doivent être posées en français. De plus il s'agit manifestement d'un devoir scolaire, nous ne ferons pas ce devoir à la place du demandeur. Ce serait d'ailleurs lui rendre un bien mauvais service. Nous pouvons aider s'il rencontre des difficultés, pas faire son devoir à sa place.

Discussions similaires

  1. RESOTORE DATABASE WITH FILE
    Par GodGives dans le forum MS SQL Server
    Réponses: 10
    Dernier message: 06/10/2009, 00h42
  2. [socket] !<policy-file-request/> message
    Par magnus2005 dans le forum ActionScript 3
    Réponses: 2
    Dernier message: 06/07/2009, 15h11
  3. [1.x] Php.ini used : php is not using any php.ini file
    Par conscofd dans le forum Symfony
    Réponses: 1
    Dernier message: 19/05/2009, 10h23
  4. Réponses: 3
    Dernier message: 11/04/2008, 16h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo