Home
last modified time | relevance | path

Searched refs:CandidateType (Results 1 – 24 of 24) sorted by relevance

/webrtc/ice/src/external_ip_mapper/
H A Dexternal_ip_mapper_test.rs37 CandidateType::ServerReflexive, in test_external_ip_mapper_new_external_ip_mapper()
57 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper()
77 CandidateType::ServerReflexive, in test_external_ip_mapper_new_external_ip_mapper()
84 CandidateType::ServerReflexive, in test_external_ip_mapper_new_external_ip_mapper()
116 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
123 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
142 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper_with_explicit_local_ip()
154 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip()
161 CandidateType::Unspecified, in test_external_ip_mapper_new_external_ip_mapper_with_implicit_local_ip()
173 CandidateType::Unspecified, in test_external_ip_mapper_find_external_ip_without_explicit_local_ip()
[all …]
H A Dmod.rs68 pub(crate) candidate_type: CandidateType,
72 pub(crate) fn new(mut candidate_type: CandidateType, ips: &[String]) -> Result<Option<Self>> { in new() argument
76 if candidate_type == CandidateType::Unspecified { in new()
77 candidate_type = CandidateType::Host; // defaults to host in new()
78 } else if candidate_type != CandidateType::Host in new()
79 && candidate_type != CandidateType::ServerReflexive in new()
/webrtc/ice/src/candidate/
H A Dcandidate_test.rs10 candidate_type: CandidateType::Host, in test_candidate_priority()
18 candidate_type: CandidateType::Host, in test_candidate_priority()
28 candidate_type: CandidateType::Host, in test_candidate_priority()
144 candidate_type: CandidateType::Host, in test_candidate_foundation()
151 candidate_type: CandidateType::Host, in test_candidate_foundation()
162 candidate_type: CandidateType::Host, in test_candidate_foundation()
169 candidate_type: CandidateType::Host, in test_candidate_foundation()
273 (CandidateType::Host, "\"host\""), in test_candidate_type_serialization()
276 (CandidateType::Relay, "\"relay\""), in test_candidate_type_serialization()
291 (CandidateType::Host, "host"), in test_candidate_type_to_string()
[all …]
H A Dmod.rs72 fn candidate_type(&self) -> CandidateType; in candidate_type() argument
91 pub enum CandidateType { enum
105 impl fmt::Display for CandidateType { implementation
108 CandidateType::Host => "host", in fmt()
109 CandidateType::ServerReflexive => "srflx", in fmt()
110 CandidateType::PeerReflexive => "prflx", in fmt()
111 CandidateType::Relay => "relay", in fmt()
118 impl Default for CandidateType { implementation
124 impl CandidateType { implementation
143 candidate_type: CandidateType, in contains_candidate_type() argument
[all …]
H A Dcandidate_base.rs39 pub(crate) candidate_type: CandidateType,
69 candidate_type: CandidateType::default(), in default()
200 fn candidate_type(&self) -> CandidateType { in candidate_type() argument
368 CandidateType::Host | CandidateType::Relay => match self.tcp_type() { in local_preference()
374 CandidateType::PeerReflexive | CandidateType::ServerReflexive => { in local_preference()
382 CandidateType::Unspecified => 0, in local_preference()
H A Dcandidate_server_reflexive_test.rs55 candidate_types: vec![CandidateType::ServerReflexive], in test_server_reflexive_only_connection()
71 candidate_types: vec![CandidateType::ServerReflexive], in test_server_reflexive_only_connection()
H A Dcandidate_relay_test.rs78 candidate_types: vec![CandidateType::Relay], in test_relay_only_connection()
96 candidate_types: vec![CandidateType::Relay], in test_relay_only_connection()
H A Dcandidate_host.rs26 candidate_type: CandidateType::Host, in new_candidate_host()
H A Dcandidate_peer_reflexive.rs36 candidate_type: CandidateType::PeerReflexive, in new_candidate_peer_reflexive()
H A Dcandidate_server_reflexive.rs35 candidate_type: CandidateType::ServerReflexive, in new_candidate_server_reflexive()
H A Dcandidate_relay.rs39 candidate_type: CandidateType::Relay, in new_candidate_relay()
/webrtc/ice/src/agent/
H A Dagent_config.rs46 pub(crate) fn default_candidate_types() -> Vec<CandidateType> { in default_candidate_types()
48 CandidateType::Host, in default_candidate_types()
49 CandidateType::ServerReflexive, in default_candidate_types()
50 CandidateType::Relay, in default_candidate_types()
102 pub candidate_types: Vec<CandidateType>,
124 pub nat_1to1_ip_candidate_type: CandidateType,
218 candidate_types: &[CandidateType], in init_ext_ip_mapping() argument
223 if ext_ip_mapper.candidate_type == CandidateType::Host { in init_ext_ip_mapping()
229 if *candi_type == CandidateType::Host { in init_ext_ip_mapping()
237 } else if ext_ip_mapper.candidate_type == CandidateType::ServerReflexive { in init_ext_ip_mapping()
[all …]
H A Dagent_stats.rs1 use crate::candidate::{CandidatePairState, CandidateType};
176 pub candidate_type: CandidateType,
205 candidate_type: CandidateType::default(), in default()
H A Dmod.rs109 pub(crate) candidate_types: Vec<CandidateType>,
157 && (candidate_types.len() != 1 || candidate_types[0] != CandidateType::Host) in new()
164 && !contains_candidate_type(CandidateType::ServerReflexive, &candidate_types) in new()
165 && !contains_candidate_type(CandidateType::Relay, &candidate_types) in new()
268 if c.candidate_type() == CandidateType::Host && c.address().ends_with(".local") { in add_remote_candidate()
277 if c.candidate_type() != CandidateType::Host { in add_remote_candidate()
H A Dagent_selector.rs67 CandidateType::Host => { in is_nominatable()
74 CandidateType::ServerReflexive => { in is_nominatable()
81 CandidateType::PeerReflexive => { in is_nominatable()
88 CandidateType::Relay => { in is_nominatable()
95 CandidateType::Unspecified => { in is_nominatable()
H A Dagent_gather.rs24 pub(crate) candidate_types: Vec<CandidateType>,
91 CandidateType::Host => { in gather_candidates_internal()
111 CandidateType::ServerReflexive => { in gather_candidates_internal()
133 if ext_ip_mapper.candidate_type == CandidateType::ServerReflexive { in gather_candidates_internal()
151 CandidateType::Relay => { in gather_candidates_internal()
234 if ext_ip_mapper2.candidate_type == CandidateType::Host { in gather_candidates_local()
398 if mapper.candidate_type != CandidateType::Host { in gather_candidates_local_udp_mux()
H A Dagent_gather_test.rs265 nat_1to1_ip_candidate_type: CandidateType::ServerReflexive, in test_vnet_gather_with_nat_1to1_as_srflx_candidates()
299 CandidateType::Host => { in test_vnet_gather_with_nat_1to1_as_srflx_candidates()
302 CandidateType::ServerReflexive => { in test_vnet_gather_with_nat_1to1_as_srflx_candidates()
H A Dagent_vnet_test.rs283 pub(crate) nat_1to1_ip_candidate_type: CandidateType,
294 let nat_1to1_ips = if a0test_config.nat_1to1_ip_candidate_type != CandidateType::Unspecified { in pipe_with_vnet()
313 let nat_1to1_ips = if a1test_config.nat_1to1_ip_candidate_type != CandidateType::Unspecified { in pipe_with_vnet()
663 nat_1to1_ip_candidate_type: CandidateType::Host, // Use 1:1 NAT IP as a host candidate in test_connectivity_vnet_1to1_nat_with_host_candidate_vs_symmetric_nats()
716 … nat_1to1_ip_candidate_type: CandidateType::ServerReflexive, // Use 1:1 NAT IP as a srflx candidate in test_connectivity_vnet_1to1_nat_with_srflx_candidate_vs_symmetric_nats()
H A Dagent_test.rs305 CandidateType::PeerReflexive, in test_handle_peer_reflexive_udp_pflx_candidate()
551 candidate_types: vec![CandidateType::Host], in test_connectivity_lite()
1459 nat_1to1_ip_candidate_type: CandidateType::Host, in test_init_ext_ip_mapping()
1473 nat_1to1_ip_candidate_type: CandidateType::Host, in test_init_ext_ip_mapping()
1474 candidate_types: vec![CandidateType::Relay], in test_init_ext_ip_mapping()
1492 nat_1to1_ip_candidate_type: CandidateType::ServerReflexive, in test_init_ext_ip_mapping()
1493 candidate_types: vec![CandidateType::Relay], in test_init_ext_ip_mapping()
1511 nat_1to1_ip_candidate_type: CandidateType::Host, in test_init_ext_ip_mapping()
1529 nat_1to1_ip_candidate_type: CandidateType::Host, in test_init_ext_ip_mapping()
2147 candidate_types: vec![CandidateType::Host], in test_lite_lifecycle()
/webrtc/webrtc/src/ice_transport/
H A Dice_candidate_type.rs1 use ice::candidate::CandidateType;
60 impl From<CandidateType> for RTCIceCandidateType {
61 fn from(candidate_type: CandidateType) -> Self { in from()
63 CandidateType::Host => RTCIceCandidateType::Host, in from()
64 CandidateType::ServerReflexive => RTCIceCandidateType::Srflx, in from()
65 CandidateType::PeerReflexive => RTCIceCandidateType::Prflx, in from()
66 CandidateType::Relay => RTCIceCandidateType::Relay, in from()
H A Dice_gatherer.rs14 use ice::candidate::{Candidate, CandidateType};
95 candidate_types.push(ice::candidate::CandidateType::Host); in create_agent()
97 candidate_types.push(ice::candidate::CandidateType::Relay); in create_agent()
101 RTCIceCandidateType::Host => CandidateType::Host, in create_agent()
102 RTCIceCandidateType::Srflx => CandidateType::ServerReflexive, in create_agent()
103 _ => CandidateType::Unspecified, in create_agent()
/webrtc/ice/src/mdns/
H A Dmdns_test.rs19 candidate_types: vec![CandidateType::Host], in test_multicast_dns_only_connection()
30 candidate_types: vec![CandidateType::Host], in test_multicast_dns_only_connection()
53 candidate_types: vec![CandidateType::Host], in test_multicast_dns_mixed_connection()
64 candidate_types: vec![CandidateType::Host], in test_multicast_dns_mixed_connection()
87 candidate_types: vec![CandidateType::Host], in test_multicast_dns_static_host_name()
100 candidate_types: vec![CandidateType::Host], in test_multicast_dns_static_host_name()
/webrtc/ice/src/stats/
H A Dmod.rs157 pub candidate_type: CandidateType,
/webrtc/webrtc/src/stats/
H A Dmod.rs11 use ice::candidate::{CandidatePairState, CandidateType};
230 pub candidate_type: CandidateType,