feat: client side basics

feat:  websocket
This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-05-24 03:19:35 +03:00
parent 7f31e76881
commit 35c1207cff
8 changed files with 207 additions and 91 deletions

View file

@ -2,7 +2,8 @@ use std::net::IpAddr;
pub mod block;
pub mod blockchain;
pub mod network;
pub mod client_network;
pub mod server_network;
mod test;
pub mod utils;
@ -15,3 +16,7 @@ pub struct ServerConfig {
pub port: u16,
pub difficulty: u8,
}
pub struct ClientConfig {
pub server_address: IpAddr,
pub port: u16,
}