Ver código fonte

Protocol 0.2 last minute changes :)

Jonas Pflanzer 4 anos atrás
pai
commit
bef1ebe4c2
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      Client-Server Protocol.md

+ 5 - 5
Client-Server Protocol.md

@@ -2,7 +2,7 @@
 
 Protocol version: <b>"0.2"</b>
 
-Every json message must be minimized and be followed by a newline. This is rule makes receiving and parsing the messages easier because you can read until a newline comes and you will parse every json message seperately because you won't read multiple json messages from the buffer at a time.
+Every json message must be minimized and be followed by a newline. This rule makes receiving and parsing the messages easier because you can read until a newline comes and you will parse every json message seperately because you won't read multiple json messages from the buffer at a time.
 
 ## 1. Start a connection
 
@@ -113,7 +113,7 @@ Server:
 ```
 
 ### 2.2 List command
-List is split in two commands. `list` to request a list download and `getlist` to download the list.
+List is split in two commands. `list` to request a list download and `listdata` to download the list.
 
 #### 2.2.1 list - request file list download
 Client:
@@ -133,11 +133,11 @@ Server:
 }
 ```
 
-#### 2.2.2 getlist - download file list
+#### 2.2.2 listdata - download file list
 Client:
 ```
 {
-	"command": "getlist",
+	"command": "listdata",
 	"chunk": int,
 	"cancel": bool
 }
@@ -145,7 +145,7 @@ Client:
 Server:
 ```
 {
-	"command": "getlist",
+	"command": "listdata",
 	"remaining": int,
 	"cancel": bool,
 	"names": string[],