diff options
Diffstat (limited to 'doc/protocol.txt')
-rw-r--r-- | doc/protocol.txt | 20 |
1 files changed, 10 insertions, 10 deletions
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: +------------+------------------------------------------------------+ - | <NNNNN> | 5 ASCII digits making up a zero-padded number | + | <NNNNNN> | 6 ASCII digits making up a zero-padded number | +------------+------------------------------------------------------+ | <N bytes> | A stream of N bytes | +------------+------------------------------------------------------+ @@ -24,11 +24,11 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | PF | Put file command | +------------+------------------------------------------------------+ - | <NNNNN> | Length of filename | + | <NNNNNN> | Length of filename | +------------+------------------------------------------------------+ | <N bytes> | The filename | +------------+------------------------------------------------------+ - | <NNNNN> | Length of the data for the file | + | <NNNNNN> | Length of the data for the file | +------------+------------------------------------------------------+ | <N bytes> | The data | +------------+------------------------------------------------------+ @@ -54,7 +54,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | GF | Get file command | +------------+------------------------------------------------------+ - | <NNNNN> | Length of filename | + | <NNNNNN> | Length of filename | +------------+------------------------------------------------------+ | <N bytes> | The filename | +------------+------------------------------------------------------+ @@ -65,7 +65,7 @@ The server responds with either: | OK | The command completed OK. The file contents will | | | follow. | +------------+------------------------------------------------------+ - | <NNNNN> | Length of the following data | + | <NNNNNN> | Length of the following data | +------------+------------------------------------------------------+ | <N bytes> | The data from from the file | +------------+------------------------------------------------------+ @@ -85,7 +85,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | CD | Change directory command | +------------+------------------------------------------------------+ - | <NNNNN> | Length of pathname | + | <NNNNNN> | Length of pathname | +------------+------------------------------------------------------+ | <N bytes> | The pathname | +------------+------------------------------------------------------+ @@ -111,7 +111,7 @@ The format of the message from the client is: +------------+------------------------------------------------------+ | MD | Create directory command | +------------+------------------------------------------------------+ - | <NNNNN> | Length of pathname | + | <NNNNNN> | Length of pathname | +------------+------------------------------------------------------+ | <N bytes> | The pathname | +------------+------------------------------------------------------+ @@ -143,15 +143,15 @@ The server responds with either: +------------+------------------------------------------------------+ | OK | The command completed OK | +------------+------------------------------------------------------+ - | <NNNNN> | The number of filenames | + | <NNNNNN> | The number of filenames | +------------+------------------------------------------------------+ - | <NNNNN> | Length of filename 1 | + | <NNNNNN> | Length of filename 1 | +------------+------------------------------------------------------+ | <N bytes> | Filename 1 | +------------+------------------------------------------------------+ ... above 2 fields repeated ... +------------+------------------------------------------------------+ - | <NNNNN> | Length of filename N | + | <NNNNNN> | Length of filename N | +------------+------------------------------------------------------+ | <N bytes> | Filename N | +------------+------------------------------------------------------+ |