Home
last modified time | relevance | path

Searched refs:reservation_token (Results 1 – 2 of 2) sorted by relevance

/webrtc/turn/src/allocation/
H A Dallocation_manager.rs166 pub async fn create_reservation(&self, reservation_token: String, port: u16) { in create_reservation()
168 let reservation_token2 = reservation_token.clone(); in create_reservation()
182 reservations.insert(reservation_token, port); in create_reservation()
186 pub async fn get_reservation(&self, reservation_token: &str) -> Option<u16> { in get_reservation()
188 reservations.get(reservation_token).copied() in get_reservation()
/webrtc/turn/src/server/
H A Drequest.rs303 let mut reservation_token = "".to_owned(); in handle_allocate_request() localVariable
457 reservation_token = rand_seq(8); in handle_allocate_request()
519 if !reservation_token.is_empty() { in handle_allocate_request()
521 .create_reservation(reservation_token.clone(), relay_port) in handle_allocate_request()
537 if !reservation_token.is_empty() { in handle_allocate_request()
539 reservation_token.as_bytes().to_vec(), in handle_allocate_request()