refactoring conn audit, add session_id (both session_id and conn_id on
sever side), use session_id instead of conn_id for client id, and remove conn_id in protobuf
This commit is contained in:
parent
a33c94a377
commit
8ab2a79fa2
9 changed files with 27 additions and 24 deletions
|
|
@ -90,7 +90,7 @@ pub fn new() -> ServerPtr {
|
|||
let mut server = Server {
|
||||
connections: HashMap::new(),
|
||||
services: HashMap::new(),
|
||||
id_count: 0,
|
||||
id_count: hbb_common::rand::random::<i32>() % 1000,
|
||||
};
|
||||
server.add_service(Box::new(audio_service::new()));
|
||||
server.add_service(Box::new(video_service::new()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue