Use the real structure with Server-Broker-Client instead of Client-Server-Requester previously used in Bonk v1

This commit is contained in:
2024-02-12 17:33:56 +01:00
parent 7ee40b7dbe
commit 857b9171af
11 changed files with 604 additions and 157 deletions

View File

@@ -16,6 +16,7 @@ enum ClientMessage {
NotRequired { id: String },
}
// TODO: This is an old examples
#[tokio::main]
async fn main() -> std::io::Result<()> {
let client_name = "Polnareffland1";
@@ -36,7 +37,7 @@ async fn main() -> std::io::Result<()> {
let connector = TlsConnector::from(Arc::new(tlsconfig));
let dnsname = ServerName::try_from("localhost").unwrap();
let stream = TcpStream::connect("localhost:6379").await?;
let stream = TcpStream::connect("localhost:2541").await?;
let stream = connector.connect(dnsname, stream).await?;
let mut transport = Framed::new(stream, LengthDelimitedCodec::new());

View File

@@ -1,2 +0,0 @@
#[tokio::main]
async fn main() {}