feat: ✨ client side basics
feat: ✨ websocket
This commit is contained in:
parent
7f31e76881
commit
35c1207cff
8 changed files with 207 additions and 91 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue