diff options
| author | Fuwn <[email protected]> | 2021-03-28 15:08:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-03-28 15:08:53 -0700 |
| commit | 368440abbd6e03d50fa4a90ca9fe59ea14d990fd (patch) | |
| tree | c303afc00aa6be9367c5502064b2ccaa24df1bd7 | |
| parent | fix: Spawn servers properly (diff) | |
| download | whirl-368440abbd6e03d50fa4a90ca9fe59ea14d990fd.tar.xz whirl-368440abbd6e03d50fa4a90ca9fe59ea14d990fd.zip | |
etc: Prepare AutoServer SESSINIT parse function
| -rw-r--r-- | src/server/auto/cmd/session.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/server/auto/cmd/session.rs b/src/server/auto/cmd/session.rs index 8e8fbb7..290aac5 100644 --- a/src/server/auto/cmd/session.rs +++ b/src/server/auto/cmd/session.rs @@ -2,6 +2,16 @@ use crate::server::cmd::session::SessionInitializationCommand; use bytes::BytesMut; use std::str::from_utf8; +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 { @@ -16,3 +26,9 @@ pub fn parse_session_initialization_command( // password: "".to_string() } } + +// pub fn create_session_initialization_command() -> SessionInitializationCommandServer { +// SessionInitializationCommandServer { +// +// } +// } |