bincode gaming
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
use bincode::config::Configuration;
|
||||
|
||||
pub mod client;
|
||||
mod no_cert;
|
||||
pub mod server;
|
||||
|
||||
pub const SERVER_NAME: &str = "openworm";
|
||||
pub const BINCODE_CONFIG: Configuration = bincode::config::standard();
|
||||
|
||||
#[derive(Debug, bincode::Encode, bincode::Decode)]
|
||||
pub enum ClientMsg {
|
||||
SendMsg { content: String },
|
||||
}
|
||||
|
||||
#[derive(Debug, bincode::Encode, bincode::Decode)]
|
||||
pub enum ServerMsg {
|
||||
RecvMsg { content: String },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user