Merge branch 'channel-structure' of https://github.com/mitch161/rust-chat-server into channel-structure
This commit is contained in:
commit
b62d32dcd5
|
|
@ -78,12 +78,22 @@ impl<'a> Client<'a> {
|
|||
|
||||
Commands::Info(Some(params)) => {
|
||||
self.get_stream().write_all(a.to_string().as_bytes());
|
||||
/* why not do this?
|
||||
*
|
||||
* self.transmit_data(a.to_string().as_str());
|
||||
*/
|
||||
},
|
||||
Commands::Disconnect(None) => {
|
||||
|
||||
},
|
||||
Commands::ClientRemove(Some(params)) => {},
|
||||
Commands::Client(Some(params)) => {},
|
||||
Commands::Client(Some(params)) => {
|
||||
self.transmit_data(a.to_string().as_str());
|
||||
todo!()
|
||||
/*
|
||||
* a success message needs to be read and confirmed
|
||||
*/
|
||||
},
|
||||
Commands::Success(data) => {},
|
||||
_ => {},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue