Update README.md

This commit is contained in:
Denis-Cosmin Nutiu 2017-12-05 15:14:14 +02:00 committed by GitHub
parent 4813e99fb3
commit 4b43cabbfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,6 @@ execute commands on it.
The server accepts the following commands:
```
The available commands are:
get <filename> - 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,