From 78a571ae67939bea110d01540236c27a9a48d72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20=F0=9F=85=B1=2E=20Kildaire?= <21629986@sun.ac.za> Date: Wed, 23 Sep 2020 13:14:55 +0200 Subject: [PATCH] Updated protocol --- protocol.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/protocol.md b/protocol.md index ab47f5e..e5cf194 100644 --- a/protocol.md +++ b/protocol.md @@ -22,13 +22,21 @@ Every command starts with a 1 byte code specifying the command. ### `auth` +Request format: + ``` |-- 0 --|-- usernameLength (1 byte) --|-- username --|-- password --| ``` +Reply format: + +``` +|-- 1 --|-- status (1 byte) --| +``` + ### `link` ``` -|-- 1 --|-- todo +|-- 2 --|-- todo ```