Update README.md
This commit is contained in:
parent
4813e99fb3
commit
4b43cabbfb
1 changed files with 10 additions and 12 deletions
22
README.md
22
README.md
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue