Browse Source

added queue and dequeue to protocol

Serdyukov, Denys 4 years ago
parent
commit
7b50ce80b8
2 changed files with 82 additions and 0 deletions
  1. 44 0
      Client-Server Protocol.md
  2. 38 0
      GUI-CLI Protocol.md

+ 44 - 0
Client-Server Protocol.md

@@ -399,6 +399,50 @@ The answer consists of an array of objects, each representing a transfer.
 `speed` contains the speed in bytes per second.
 `method` contains the covert channel method being used.
 
+### 2.10 Queue command
+
+To add a file that is already on the server to the queue for sending with the covert channel, the client uses the `queue` command.
+
+Client:
+```
+{
+	"command": "queue",
+	"file": string
+}
+```
+
+Server:
+```
+{
+	"command": "queue",
+	"file": string,
+	"accept": bool,
+	"error": string
+}
+```
+
+### 2.11 Dequeue command
+
+To remove a file from the queue for sending with the covert channel, the client uses the `dequeue` command.
+
+Client:
+```
+{
+	"command": "dequeue",
+	"file": string
+}
+```
+
+Server:
+```
+{
+	"command": "dequeue",
+	"file": string,
+	"accept": bool,
+	"error": string
+}
+```
+
 ## 3. Close connection
 
 ### 3.1 Close command

+ 38 - 0
GUI-CLI Protocol.md

@@ -289,6 +289,44 @@ The answer consists of an array of objects, each representing a transfer.
 `speed` contains the speed in bytes per second.
 `method` contains the covert channel method being used.
 
+### 2.9 Queue command
+
+To add a file that is already on the server to the queue for sending with the covert channel, the use the `queue` command.
+
+Client:
+```
+write: "queue" file_name
+```
+
+Server:
+```
+{
+	"command": "queue",
+	"file": string,
+	"accept": bool,
+	"error": string
+}
+```
+
+### 2.11 Dequeue command
+
+To remove a file from the queue for sending with the covert channel, the use the `dequeue` command.
+
+Client:
+```
+write: "queue" file_name
+```
+
+Server:
+```
+{
+	"command": "dequeue",
+	"file": string,
+	"accept": bool,
+	"error": string
+}
+```
+
 ## 3. Disconnecting and exiting
 
 ### 3.1. Disconnect