Просмотр исходного кода

Extendedstatus now shows when file is queued

Serdyukov, Denys 4 лет назад
Родитель
Сommit
f9c60e7d39
2 измененных файлов с 12 добавлено и 12 удалено
  1. 6 6
      Client-Server Protocol.md
  2. 6 6
      GUI-CLI Protocol.md

+ 6 - 6
Client-Server Protocol.md

@@ -384,7 +384,7 @@ Server:
         "progress": float
     }[],
     "transfersserverserver": {
-        "upload": bool,
+        "type": string,
         "file": string,
         "progress": float,
         "speed": float,
@@ -392,11 +392,11 @@ Server:
     }[]
 }
 ```
-The answer consists of an array of objects, each representing a transfer.
-`upload` indicates, wether the transfer is an up- or download.
-`file` contains the name of the file being transferred.
-`progress` contains the percentage completed.
-`speed` contains the speed in bytes per second.
+The answer consists of an array of objects, each representing a transfer. <br />
+In case of client-server transfers, `upload` indicates wether the transfer is an up- or download. In case of server-server transfers, `type` indicates wether the file  is `upload`ing, `download`ing or `queued` for upload. <br />
+`file` contains the name of the file being transferred. <br />
+`progress` contains the percentage completed. <br />
+`speed` contains the speed in bytes per second. <br />
 `method` contains the covert channel method being used.
 
 ### 2.10 Queue command

+ 6 - 6
GUI-CLI Protocol.md

@@ -274,7 +274,7 @@ CLI:
         "progress": float
     }[],
     "transfersserverserver": {
-        "upload": bool,
+        "type": string,
         "file": string,
         "progress": float,
         "speed": float,
@@ -282,11 +282,11 @@ CLI:
     }[]
 }
 ```
-The answer consists of an array of objects, each representing a transfer.
-`upload` indicates, wether the transfer is an up- or download.
-`file` contains the name of the file being transferred.
-`progress` contains the percentage completed.
-`speed` contains the speed in bytes per second.
+TThe answer consists of an array of objects, each representing a transfer. <br />
+In case of client-server transfers, `upload` indicates wether the transfer is an up- or download. In case of server-server transfers, `type` indicates wether the file  is `upload`ing, `download`ing or `queued` for upload. <br />
+`file` contains the name of the file being transferred. <br />
+`progress` contains the percentage completed. <br />
+`speed` contains the speed in bytes per second. <br />
 `method` contains the covert channel method being used.
 
 ### 2.9 Queue command