Commit Graph
17 Commits
Author SHA1 Message Date
Barry Pederson 60bc980e8d Simplify test code a bit, use Request::new() to simplfy constructing requests 2024-11-03 12:49:23 -08:00
Barry Pederson 4d70463e46 Make handler.rs generic for anything that implements Read+Write, add unittest taking advantage of that.
Also, it'll work now for things other than UnixStreams, such as TcpStreams
2024-11-03 12:19:02 -08:00
Barry Pederson 5f4a0e0e88 Reorganize and refactor, adding integration test for common library stuff 2024-11-03 11:44:03 -08:00
Barry Pederson 00743fbe9c Reame listener.rs to server.rs for clarity 2024-11-03 10:38:40 -08:00
Barry Pederson 7cd2ba3364 Rename server.rs to handler.rs for clarity, since this is responsible for handling one interaction with a client 2024-11-03 10:31:31 -08:00
Barry Pederson 1a66c8ede5 Rename handler.rs to repository.rs for clarity, pass the directory name as a new() parameter rather than have the repository aware of the OPTIONS static 2024-11-03 10:28:14 -08:00
Barry Pederson 52f502f7a6 Simplify Cargo.toml dependencies
Still need two copies of the dependencies, but at least they're in one place now.
2024-11-02 16:07:05 -07:00
Barry Pederson 076e48f457 Add a separate client binary, with some common code to the server.
The cargo workspace thing was a PITA to figure out, but it seems to be working.  Could maybe be simplified?
2024-11-02 15:58:35 -07:00
Barry Pederson 46ad77f19e Restructure and add unit tests...maybe it works now? 2024-11-02 13:49:07 -07:00
Barry Pederson ac9743dc8a WIP: trying to refactor to separate password-checking from network-communication 2024-11-02 11:05:16 -07:00
Barry Pederson 15daa7d7a1 Make option names closer to option variable names 2022-03-01 10:24:48 -08:00
Barry Pederson 8134df29b7 Change option names for clarity 2022-03-01 10:23:17 -08:00
Barry Pederson b9c091f71f Use once_cell to allow for global static immutable options
So they don't have to be passed around all over the place
2022-03-01 10:03:38 -08:00
Barry Pederson a244e714ea Refactor Listener and Server into separate files. 2022-03-01 09:07:29 -08:00
Barry Pederson bb65edd766 Add structopt option parsing, use a plain textfile for each user rather than YAML 2022-02-28 19:14:54 -08:00
Barry Pederson 3b01c2a893 Got it actually checking against a yaml file 2022-02-28 14:22:16 -08:00
Barry Pederson 36f26d4a85 First pass, creates socket, should listen and respond 2022-02-28 11:58:57 -08:00