From 578c14949b6ca1ec83cef75b3c7d8e7c7dc5379a Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 28 Feb 2020 15:28:37 +0000 Subject: Updated docs and started on client. --- doc/protocol.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/protocol.txt') diff --git a/doc/protocol.txt b/doc/protocol.txt index 20378a0..209403b 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -10,7 +10,7 @@ a message type. The following are standard compents of a message: +------------+------------------------------------------------------+ - | | 5 ASCII digits making up a zero-padded number | + | | 6 ASCII digits making up a zero-padded number | +------------+------------------------------------------------------+ | | A stream of N bytes | +------------+------------------------------------------------------+ @@ -24,11 +24,11 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | PF | Put file command | +------------+------------------------------------------------------+ - | | Length of filename | + | | Length of filename | +------------+------------------------------------------------------+ | | The filename | +------------+------------------------------------------------------+ - | | Length of the data for the file | + | | Length of the data for the file | +------------+------------------------------------------------------+ | | The data | +------------+------------------------------------------------------+ @@ -54,7 +54,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | GF | Get file command | +------------+------------------------------------------------------+ - | | Length of filename | + | | Length of filename | +------------+------------------------------------------------------+ | | The filename | +------------+------------------------------------------------------+ @@ -65,7 +65,7 @@ The server responds with either: | OK | The command completed OK. The file contents will | | | follow. | +------------+------------------------------------------------------+ - | | Length of the following data | + | | Length of the following data | +------------+------------------------------------------------------+ | | The data from from the file | +------------+------------------------------------------------------+ @@ -85,7 +85,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | CD | Change directory command | +------------+------------------------------------------------------+ - | | Length of pathname | + | | Length of pathname | +------------+------------------------------------------------------+ | | The pathname | +------------+------------------------------------------------------+ @@ -111,7 +111,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | MD | Create directory command | +------------+------------------------------------------------------+ - | | Length of pathname | + | | Length of pathname | +------------+------------------------------------------------------+ | | The pathname | +------------+------------------------------------------------------+ @@ -143,15 +143,15 @@ The server responds with either: +------------+------------------------------------------------------+ | OK | The command completed OK | +------------+------------------------------------------------------+ - | | The number of filenames | + | | The number of filenames | +------------+------------------------------------------------------+ - | | Length of filename 1 | + | | Length of filename 1 | +------------+------------------------------------------------------+ | | Filename 1 | +------------+------------------------------------------------------+ ... above 2 fields repeated ... +------------+------------------------------------------------------+ - | | Length of filename N | + | | Length of filename N | +------------+------------------------------------------------------+ | | Filename N | +------------+------------------------------------------------------+ -- cgit v1.2.3