diff options
| author | Fuwn <[email protected]> | 2021-04-26 13:29:26 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-26 13:29:26 +0000 |
| commit | 5cd7ed3f61a713df0f8fe7c152bce6dfeea060c0 (patch) | |
| tree | 6916dc4969f45ca2161042992a98470f0e1d984a /src/server_dev/auto/cmd/session.rs | |
| parent | Merge branch 'develop' of https://github.com/Whirlsplash/whirl into develop (diff) | |
| download | whirl-5cd7ed3f61a713df0f8fe7c152bce6dfeea060c0.tar.xz whirl-5cd7ed3f61a713df0f8fe7c152bce6dfeea060c0.zip | |
fix: Actually remove legacy server module
Diffstat (limited to 'src/server_dev/auto/cmd/session.rs')
| -rw-r--r-- | src/server_dev/auto/cmd/session.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/server_dev/auto/cmd/session.rs b/src/server_dev/auto/cmd/session.rs deleted file mode 100644 index 19969dc..0000000 --- a/src/server_dev/auto/cmd/session.rs +++ /dev/null @@ -1,36 +0,0 @@ -use std::str::from_utf8; - -use bytes::BytesMut; - -use crate::server::cmd::session::SessionInitializationCommand; - -struct _SessionInitializationCommandServer { - pub error: usize, - pub app_name: String, - pub protocol: usize, - pub server_type: usize, - pub serial: String, - pub private: usize, - pub channel: String, -} - -pub fn parse_session_initialization_command(command: BytesMut) -> SessionInitializationCommand { - SessionInitializationCommand { - // protocol: command.get(4..4 + command.get(4)).unwrap().to_owned() as usize, - // client: "".to_string(), - username: from_utf8( - command - .get(21..(20 + command.get(20).unwrap().to_owned() as usize + 1)) - .unwrap(), - ) - .unwrap() - .to_string(), - // password: "".to_string() - } -} - -// pub fn create_session_initialization_command() -> -// SessionInitializationCommandServer { SessionInitializationCommandServer { -// -// } -// } |