2017-10-28 16:10:38 +00:00
|
|
|
# simplFT
|
|
|
|
This project was made for the purpose of me to learn and understand Go better and also for the Computer Networking class
|
|
|
|
that I took in Fall 2017 at UPT.
|
|
|
|
|
|
|
|
The scope of this project is to implement a simple server that handles multiple clients and allows the clients to
|
|
|
|
execute commands on it.
|
|
|
|
|
2017-11-16 09:19:01 +00:00
|
|
|
## Configuration
|
|
|
|
|
2017-11-22 06:49:16 +00:00
|
|
|
The server can be configured via command line flags with the -ConfigPath option,
|
|
|
|
specifying a path to the configuration file.
|
2017-11-16 09:19:01 +00:00
|
|
|
If no configuration file is provided the server will run with the default settings.
|
|
|
|
|
|
|
|
Sample Configuration File:
|
|
|
|
```
|
|
|
|
{
|
2017-11-24 20:37:09 +00:00
|
|
|
"address": "localhost",
|
|
|
|
"port": "8080",
|
|
|
|
"maxDirDepth": 30,
|
|
|
|
"absoluteServePath": "/Users/denis/Dropbox/Pictures/CuteAvatars"
|
2017-11-16 09:19:01 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
The **config.json** file contains the following settings:
|
|
|
|
|
|
|
|
Address - The address on which to serve
|
|
|
|
Port - The port
|
|
|
|
MaxDirDepth - The maximum depth the user can go into directories. A value of 30 means the user can cd into max 30 dirs.
|
|
|
|
AbsoluteServePath - The path from where to serve the files.
|