From 9a0b423b91a1ba133a467f15874e021a45a659b1 Mon Sep 17 00:00:00 2001 From: Nico Date: Fri, 19 Mar 2021 15:10:46 +0100 Subject: [PATCH 1/2] Protocol created --- specs/.idea/.gitignore | 8 ++++++++ specs/.idea/misc.xml | 6 ++++++ specs/.idea/modules.xml | 8 ++++++++ specs/.idea/specs.iml | 9 +++++++++ specs/.idea/vcs.xml | 6 ++++++ specs/Meridas/PROTOCOL.md | 7 +++++++ 6 files changed, 44 insertions(+) create mode 100644 specs/.idea/.gitignore create mode 100644 specs/.idea/misc.xml create mode 100644 specs/.idea/modules.xml create mode 100644 specs/.idea/specs.iml create mode 100644 specs/.idea/vcs.xml create mode 100644 specs/Meridas/PROTOCOL.md diff --git a/specs/.idea/.gitignore b/specs/.idea/.gitignore new file mode 100644 index 0000000..3413c68 --- /dev/null +++ b/specs/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/../../../../../../../../../../../:\Users\Nicolas\OneDrive\Ecole\RES\Labo\Lab03\Teaching-HEIGVD-RES-2021-Exercise-Protocol-Design\specs\.idea/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/specs/.idea/misc.xml b/specs/.idea/misc.xml new file mode 100644 index 0000000..ca489bb --- /dev/null +++ b/specs/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/specs/.idea/modules.xml b/specs/.idea/modules.xml new file mode 100644 index 0000000..304bf2d --- /dev/null +++ b/specs/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/specs/.idea/specs.iml b/specs/.idea/specs.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/specs/.idea/specs.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/specs/.idea/vcs.xml b/specs/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/specs/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/specs/Meridas/PROTOCOL.md b/specs/Meridas/PROTOCOL.md new file mode 100644 index 0000000..8fb6a06 --- /dev/null +++ b/specs/Meridas/PROTOCOL.md @@ -0,0 +1,7 @@ +What transport protocol do we use?TCP +How does the client find the server (addresses and ports)? +Who speaks first?Client +What is the sequence of messages exchanged by the client and the server? (flow) +What happens when a message is received from the other party? (semantics) +What is the syntax of the messages? How we generate and parse them? (syntax) +Who closes the connection and when? From 71d7876913398f8b3687bd83335b2733507d4515 Mon Sep 17 00:00:00 2001 From: Nico Date: Fri, 19 Mar 2021 15:20:59 +0100 Subject: [PATCH 2/2] protocol.md edit --- specs/Meridas/PROTOCOL.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specs/Meridas/PROTOCOL.md b/specs/Meridas/PROTOCOL.md index 8fb6a06..bcc4f99 100644 --- a/specs/Meridas/PROTOCOL.md +++ b/specs/Meridas/PROTOCOL.md @@ -1,7 +1,16 @@ What transport protocol do we use?TCP -How does the client find the server (addresses and ports)? +How does the client find the server (addresses and ports)? +Server has a static adress/port combination Who speaks first?Client -What is the sequence of messages exchanged by the client and the server? (flow) +What is the sequence of messages exchanged by the client and the server? (flow) +Client : request connexion +Server : allow connexion, available operations +Client : request operation operand1 operand2 +Server : Result (Value, noErr) +Client : Close connexion What happens when a message is received from the other party? (semantics) +Message parsed and interpreted What is the syntax of the messages? How we generate and parse them? (syntax) +Operations are separated by a blank space Who closes the connection and when? +Client when he wants to quit. \ No newline at end of file