Made other changes to GRPC implementation to clean it up (#23)

* added protocol crate for the program, also removed unused crates

* remove client code

* removed example plugin

* cleaned up foundation, added protocol crate to it

* removed lua scripts

* removed server ctl

* migrated tp prost instead of protobuf crate

* removed scripting code

* moved protocol crate to foundation, created helper functions for encoding and decoding

* Createde Cursive client for testing protocol stuff

* added docs?

* overriding server to remove actix, and simplify design

* linting the server

* moved network message handling into NetworkConnection struct

* linting

* cleaning up prints

* writing better log messages

* added better debug messages

* purged all axtix modules, to be replaced with new components

* ok, so i kind of got carried away here with the server and client.

But essentially, the server has been rewritten to follow protobug up untill the point of connecting a client.

the client can fetch info from the server, but cannot initiate a request to connect.

I am weorkibng on both in tandem, and there will be losts of big commits :D

* removing client stuff again, cause it's not going well

* added client networking structs to the foundation crate

* moved client stuff into foundation.

* created Json structures

* created protobuf structures

* revamped the connection and protocolm structure to allow addition of other protocols

* fixed issue with erronious request input from clients

* removed select statements

* Updated logging messages
This commit is contained in:
Michael Bailey 2024-09-09 17:48:09 +01:00 committed by GitHub
parent c1e4a22099
commit 313b115537
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ impl ClientWriter for JSONClientWriter {
username: details.name,
};
println!(
"[ProtobufClientWriter:{}] sending client connected message",
"[JSONClientReader:{}] sending client connected message",
self.addr
);
write_message(&mut self.writer, message).await;
@ -70,7 +70,7 @@ impl ClientWriter for JSONClientWriter {
async fn send_client_left(&mut self, uuid: Uuid) {
let message = ClientStreamOut::ClientRemoved { id: uuid };
println!(
"[ProtobufClientWriter:{}] sending client connected message",
"[JSONClientReader:{}] sending client connected message",
self.addr
);
write_message(&mut self.writer, message).await;

View File

@ -74,7 +74,7 @@ impl Server {
ConnectionType::JsonConnection(stream, addr),
)) => {
let conn = Box::new(JSONNetworkConnection::new(stream, addr));
println!("[Server] New protobuf connection");
println!("[Server] New json connection");
self.handle_protobuf_connection(conn).await;
}
Some(ServerMessages::SendGlobalMessages(uuid)) => {