Commit Graph

8 Commits

Author SHA1 Message Date
einisto
ea2b5fcca1 Correct address binding 2022-08-12 00:44:07 +03:00
einisto
35fb797c95 Key-based authentication & critical fix to server's async behaviour
* 8 character long alphanumeric key authentication (server-side)
* Modified integration test to skip the previously mentioned key authentication
* Fixed a previously made typo, which caused the server to await until a single
  client's connection was done
* Simplified the structure of client.rs & server.rs a lot, also improved comments
* Confirm client's connection request with SYN
* Version bump, v0.2.0 => v0.3.0
2022-07-29 17:24:20 +03:00
einisto
c933339771 File selection based on stdin
* Spawn to threads as a client to handle stdin (blocking) &
  connection/transfer
* Input from stdin gets transfered to connection-thread via MPSC-channel
* Included a new flag (-a) to skip stdin and instead download all
  available files from the host
* Removed earlier typos
2022-07-26 22:08:31 +03:00
einisto
9b6965933e Removed panics
Replaced panics with errors, so from now on the server won't crash even if connection with one individual client would fail
2022-07-17 19:07:22 +03:00
einisto
530e33867b Better req handling & reading
* Fixed old typos
* Fixed problem caused by empty data folder
* Included newlines to requests to separate individual messages
2022-07-16 05:28:54 +03:00
einisto
44ef3d8db1 Single binary structure & integration tests
* Moved server & client into single binary
* Integration tests
* Server timeout
* General argument parsing
* Version bump
2022-07-15 16:18:03 +03:00
einisto
32ed133e21 CLI args
* Client: target IP, fileroot (defaults to "./output/", still requires
fixing)

* Server: host port (defaults to 8080), fileroot (defaults to "./data/",
  still requires fixing), buffersize (defaults to 8192/64Kb), local
  (flag to run only locally @localhost)
2022-07-11 21:10:05 +03:00
einisto
02f7d74267 Initial commit 2022-07-10 22:16:50 +03:00