2022-08-18 12:23:33 +02:00
|
|
|
## Socket pair for FTP like file transfer
|
2022-07-16 21:09:28 +02:00
|
|
|
|
2022-12-01 19:35:31 +01:00
|
|
|
Single binary containing both server and client.
|
2022-07-16 21:09:28 +02:00
|
|
|
|
|
|
|
<p align="left">
|
2022-12-18 14:12:41 +01:00
|
|
|
<a href="https://github.com/einisto/fragilebyte/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/17ms/fragilebyte/ci.yml?branch=main"></a>
|
|
|
|
<a href="https://github.com/einisto/fragilebyte/tags"><img src="https://img.shields.io/github/v/tag/17ms/fragilebyte"></a>
|
|
|
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/github/license/17ms/fragilebyte"></a>
|
2022-07-16 21:09:28 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
### Installation and usage
|
|
|
|
|
|
|
|
Quickly run with:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo run -- <OPTIONS>
|
|
|
|
```
|
|
|
|
|
|
|
|
or create and run an optimized, independent binary:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo build --release
|
|
|
|
./target/release/fragilebyte <OPTIONS>
|
|
|
|
```
|
|
|
|
|
2022-08-11 23:44:07 +02:00
|
|
|
If no options are specified the app starts as a server by default. It can be started as a client by defining a target address:
|
2022-07-17 19:58:45 +02:00
|
|
|
|
2022-07-27 00:38:11 +02:00
|
|
|
```
|
2022-07-16 21:09:28 +02:00
|
|
|
USAGE:
|
|
|
|
fragilebyte [OPTIONS]
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
-b, --buffersize <BUFFERSIZE> Buffersize used in the file transfer (bytes) [default: 8192]
|
|
|
|
-f, --fileroot <FILEROOT> Path to the folder where the files are outputted as a client or
|
|
|
|
served from as a server [default: './output' / './data']
|
|
|
|
-h, --help Print help information
|
|
|
|
--localhost Run only in the local network
|
|
|
|
-p, --port <PORT> Port where the service is hosted [default: 8080]
|
|
|
|
-t, --target <TARGET> Server's address when connecting as a client
|
|
|
|
--timeout <TIMEOUT> Seconds of inactivity after which the server closes itself
|
|
|
|
[default: 30]
|
2022-07-17 19:58:45 +02:00
|
|
|
-V, --version Print version information
|
2022-07-16 21:09:28 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
2022-12-18 14:12:41 +01:00
|
|
|
![DependenciesGraph](docs/structure.svg)
|