From 4b43cabbfb0d6e9256f732b4dc108508a2d2f7b6 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 5 Dec 2017 15:14:14 +0200 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a980140..cd91410 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ execute commands on it. The server accepts the following commands: ``` -The available commands are: get - Download the requested filename. ls - List the files in the current directory. cd - Changes the directory. @@ -19,17 +18,6 @@ exit - Close the connection with the server.c pic - Returns the ascii art of an image. :-) ``` -#### The upload server - -If the upload server is running, the user will be able to put files -on the **absoluteServePath**. After the file is uploaded successfully, -if the timeout is not reached, the user will get back the filename. - -To send data to the upload server, the following command can be used: - -```nc ip port < gopher.png``` - - #### Sending commands via netcat To grab a file the following command can be send: @@ -41,6 +29,16 @@ can be used: ```(echo "get file1.txt" & echo "get file2.txt") | nc ip port > concatenated.txt``` +#### The upload server + +If the upload server is running, the user will be able to put files +on the **absoluteServePath**. After the file is uploaded successfully, +if the timeout is not reached, the user will get back the filename. + +To send data to the upload server, the following command can be used: + +```nc ip port < gopher.png``` + ## Configuration The server can be configured via command line flags with the -ConfigPath option,