summaryrefslogtreecommitdiffstats
path: root/docs/rfc.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/rfc.md')
-rw-r--r--docs/rfc.md31
1 files changed, 24 insertions, 7 deletions
diff --git a/docs/rfc.md b/docs/rfc.md
index 3bed7fc..6f902b0 100644
--- a/docs/rfc.md
+++ b/docs/rfc.md
@@ -226,10 +226,27 @@ specific operation (for example incoming message) cannot interrupt this process.
### Connection initialisation
-- Client: Initialise TCP connection.
-- Client: Send *handshake*.
-- Server: If *major* version of protocol differs close the connection.
-- Server: Otherwise send *handshake*.
-- Client: Send *auth*.
-- Server: If user credentials does not match send *error* with *auth_failed*.
-- Server: Otherwise send *success*.
+~~~ ascii-art
++--------+ +--------+
+| Client | | Server |
++----+---+ +----+---+
+ | |
+ | Initialise TCP connection |
+ +--------------------------->|
+ | |
+ | Send [Handshake] |
+ +--------------------------->|
+ | |
+ | +- If [ver_major] does not match server
+ | | protocol version close the connection
+ | |
+ | Send [Auth] |
+ +--------------------------->|
+ | |
+ | Send [Error 0x01] |
+ |<---------------------------+- If [username] or [password] does not match
+ | | and close the connection
+ | |
+ | Send [Sucesss] |
+ |<---------------------------+
+~~~ \ No newline at end of file