A small library and tcp server i make for the fun of it
Go to file
Martin Slot ba09502fe1 Added an assert more 2023-12-20 09:23:49 +01:00
commander_host Added explicit registry to `commander_kernel` 2023-12-09 08:55:54 +01:00
examples Added RSA encryption 2023-12-19 21:05:13 +01:00
kernel Added an assert more 2023-12-20 09:23:49 +01:00
tests Added RSA encryption 2023-12-19 21:05:13 +01:00
.gitignore Fixed how `router` implement `action`s. We now need to implement the trait `Action` for our actions. 2023-11-27 16:36:17 +01:00
Cargo.lock Added RSA encryption 2023-12-19 21:05:13 +01:00
Cargo.toml Added an example with a simple host. Now we need a simple client that can call it and get an answer back. 2023-12-19 08:06:59 +01:00
publish.sh Added a publish script 2023-12-09 09:05:53 +01:00
readme.md Added RSA encryption 2023-12-19 21:05:13 +01:00

readme.md

Commander

This is a small request/response server written in rust that talks a HTTP-like protocol based on protobuf.

Production

Please never use this in production :)

StreamReader

I am experimenting a lot with a buffered reader, that i think is pretty slow, and pretty non-rustic in it's implementation: still, i like to have fun with it.

Examples

For examples on how to use it, see:

  1. the tests under tests/
  2. the simple_host and simple_client under examples/

I you want to see the examples running, do this from two shells (current directory is the root of the commander repo):

# shell 1
cargo run --example simple_host

# shell 2
cargo run --example simple_client

# shell 2 outputs: client got: Hello from Example. Got: hello from simple_client

Nextgen

I am currently looking into using the rsa crate: rsa = { version = "0.9", features = ["sha2", "pem"] } for simple encryption/decrypting and message signing. More on this later. Again: this shouldn't be used in production as well :)