NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

______________________________________________________________________

Description protocole d'application et sérialisation
______________________________________________________________________


Adresse IP : ????
Port de connexion : ????

1. Protocole d'application
--------------------------

1.1. Format
-----------
Chaque interaction possible se déroule dans cet ordre :
1) Le client effectue sa requête vers le serveur.
2) Le serveur éxécute la requête du client.
Renvoie un message de réponse vers le client.
3) Le client affiche la réponse du serveur.

Définition du message envoyé
On envoie une chaîne de type : commande%param1#param2 ...
!!!!!!!! Rajouter le type de bufferisation utilisé
Dans le cas où on aurait un paramètre composé d'une liste, on recevra ce paramètre sous la forme : paramPrécédent#s1;s2;s3;...#paramSuivant

1.2. Interactions
-----------------

- Connexion

- Ajout ex: add%nom1#surnom1;surnom2;...;surnomX#nom2#surnom1;surnom2;...;surnomX#...
- Le client effectue sa demande d'ajout en passant au serveur les paramètres suivants (Le client peut evnoyer plusieurs couple (nom, surnom) dans la commande):
|__ String : nom (non vide)
|__ List<String> : liste des surnoms (sans surnom pour ajouter qu'un nom : add%nom1##nom2#surnom)
- Le serveur renvoit comme réponse :
|__ String : Ok, commande éxécutée correctement |__ String : Erreur, (msg erreur)

- Modification ex: modif%nom1#surnom1Old#surnom1New#nom2#surnom2Old#surnom2New#...
- Le client effectue une demande de modification d'un surnom existant en passant au serveur les paramètres :
|__ String : nom (non vide)
|__ String : surnom à modifier (non vide)
|__ String : nouveau surnom (non vide)
- Le serveur renvoit comme réponse :
|__ String : Ok, commande éxécutée correctement |__ String : Erreur, (msg erreur)

- Chercher ex: look%nom
- Le client demande une liste de l'ensemble des surnoms du nom passé en paramètre
|__ String : nom de l'unique personne dont on veut le(s) surnom(s) (non vide)
- Le serveur renvoit comme réponse :
|__ String : Liste des surnom |__ String : Erreur, (msg erreur)


- Lister ex: list
- Le client demande une liste de l'ensemble des noms/surnoms
|__ Sans paramètre : liste exhaustive de tous les surnoms pour chaques noms
- Le serveur renvoit comme réponse :
|__ String : Liste de nom suivit de leurs surnom |__ String : (msg erreur)

- Quitter ex: quitter
- Le client demande à couper la connexion
|__ Sans paramètre : coupe la connexion
- Le serveur renvoit comme réponse :
|__ String : Message de politesse

- Déconnexion


2. Sérialisation
----------------

Nous effectuerons la sérialisation texte.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.