use uuid as session id
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
71838ad821
commit
2ececed0c1
36 changed files with 706 additions and 546 deletions
|
|
@ -28,7 +28,7 @@ use hbb_common::{
|
|||
sync::mpsc,
|
||||
time::{Duration as TokioDuration, Instant},
|
||||
},
|
||||
Stream,
|
||||
SessionID, Stream,
|
||||
};
|
||||
|
||||
use crate::client::io_loop::Remote;
|
||||
|
|
@ -49,7 +49,8 @@ const CHANGE_RESOLUTION_VALID_TIMEOUT_SECS: u64 = 15;
|
|||
|
||||
#[derive(Clone, Default)]
|
||||
pub struct Session<T: InvokeUiSession> {
|
||||
pub id: String,
|
||||
pub session_id: SessionID,
|
||||
pub id: String, // peer id
|
||||
pub password: String,
|
||||
pub args: Vec<String>,
|
||||
pub lc: Arc<RwLock<LoginConfigHandler>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue