Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 17 of 17) sorted by relevance

/webrtc/stun/src/
H A Dtextattrs.rs39 pub attr: AttrType, field
54 let max_len = match self.attr { in add_to()
62 check_overflow(self.attr, text.len(), max_len)?; in add_to()
63 m.add(self.attr, text); in add_to()
70 let attr = self.attr; in get_from() localVariable
71 *self = TextAttribute::get_from_as(m, attr)?; in get_from()
77 pub fn new(attr: AttrType, text: String) -> Self { in new()
78 TextAttribute { attr, text } in new()
83 match attr { in get_from_as()
91 let a = m.get(attr)?; in get_from_as()
[all …]
H A Dmessage.rs194 let attr = RawAttribute { in add() localVariable
201 if attr.length as usize % PADDING != 0 { in add()
215 self.attributes.0.push(attr); in add()
/webrtc/stun/src/textattrs/
H A Dtextattrs_test.rs37 attr: ATTR_SOFTWARE, in test_software_add_to_invalid()
74 attr: ATTR_SOFTWARE, in test_software_add_to_regression()
86 attr: ATTR_USERNAME, in test_username()
94 attr: ATTR_USERNAME, in test_username()
137 attr: ATTR_USERNAME, in test_username()
192 attr: ATTR_REALM, in test_realm_add_to_invalid()
265 attr: ATTR_NONCE, in test_nonce_add_to_invalid()
298 attr: ATTR_NONCE, in test_nonce_add_to()
/webrtc/stun/src/fingerprint/
H A Dfingerprint_test.rs11 attr: ATTR_SOFTWARE, in fingerprint_uses_crc_32_iso_hdlc()
31 attr: ATTR_SOFTWARE, in test_fingerprint_check()
52 attr: ATTR_SOFTWARE, in test_fingerprint_check_bad()
/webrtc/webrtc/src/peer_connection/policy/
H A Dsdp_semantics.rs95 for attr in &md.attributes { in extract_ssrc_list()
96 if attr.key == ATTR_KEY_SSRC { in extract_ssrc_list()
97 if let Some(value) = &attr.value { in extract_ssrc_list()
/webrtc/interceptor/src/twcc/receiver/
H A Dreceiver_stream.rs34 let (n, attr) = self.parent_rtp_reader.read(buf, attributes).await?; in read()
54 Ok((n, attr)) in read()
/webrtc/stun/src/message/
H A Dmessage_test.rs396 let attr = RawAttribute { in test_message_equal() localVariable
401 let attrs = Attributes(vec![attr]); in test_message_equal()
494 let attr = RawAttribute { in test_message_equal() localVariable
505 attributes: Attributes(vec![attr.clone()]), in test_message_equal()
510 attributes: Attributes(vec![attr, attr1]), in test_message_equal()
519 let attr = RawAttribute { in test_message_equal() localVariable
530 attributes: Attributes(vec![attr.clone(), attr.clone()]), in test_message_equal()
535 attributes: Attributes(vec![attr, attr1]), in test_message_equal()
577 attr: ATTR_SOFTWARE, in test_is_message()
/webrtc/stun/src/integrity/
H A Dintegrity_test.rs26 attr: ATTR_SOFTWARE, in test_message_integrity_add_to_simple()
52 attr: ATTR_SOFTWARE, in test_message_integrity_with_fingerprint()
/webrtc/webrtc/src/peer_connection/sdp/
H A Dmod.rs98 for attr in &media.attributes { in track_details_from_sdp()
99 match attr.key.as_str() { in track_details_from_sdp()
101 if let Some(value) = &attr.value { in track_details_from_sdp()
138 if let Some(value) = &attr.value { in track_details_from_sdp()
151 if let Some(value) = &attr.value { in track_details_from_sdp()
242 for attr in &media.attributes { in get_rids()
243 if attr.key.as_str() == SDP_ATTRIBUTE_RID { in get_rids()
244 if let Some(value) = &attr.value { in get_rids()
732 for attr in &media.attributes { in get_mid_value()
733 if attr.key == "mid" { in get_mid_value()
[all …]
/webrtc/stun/src/attributes/
H A Dattributes_test.rs24 attr: ATTR_SOFTWARE, in test_message_get_no_allocs()
/webrtc/interceptor/src/nack/responder/
H A Dmod.rs106 let (n, attr) = { self.parent_rtcp_reader.read(buf, a).await? }; in read()
120 Ok((n, attr)) in read()
/webrtc/interceptor/src/report/receiver/
H A Dmod.rs30 let (n, attr) = self.parent_rtcp_reader.read(buf, a).await?; in read()
56 Ok((n, attr)) in read()
H A Dreceiver_stream.rs212 let (n, attr) = self.parent_rtp_reader.read(buf, a).await?; in read()
223 Ok((n, attr)) in read()
/webrtc/interceptor/src/nack/generator/
H A Dgenerator_stream.rs156 let (n, attr) = self.parent_rtp_reader.read(buf, a).await?; in read()
162 Ok((n, attr)) in read()
/webrtc/ice/src/udp_mux/
H A Dmod.rs132 let (attr, found) = message.attributes.get(ATTR_USERNAME); in conn_from_stun_message()
138 let s = match String::from_utf8(attr.value) { in conn_from_stun_message()
/webrtc/sdp/src/description/
H A Dsession.rs313 let attr = a.to_string(); in build_codec_map() localVariable
314 if attr.starts_with("rtpmap:") { in build_codec_map()
315 if let Ok(codec) = parse_rtpmap(&attr) { in build_codec_map()
318 } else if attr.starts_with("fmtp:") { in build_codec_map()
319 if let Ok(codec) = parse_fmtp(&attr) { in build_codec_map()
322 } else if attr.starts_with("rtcp-fb:") { in build_codec_map()
323 if let Ok(codec) = parse_rtcp_fb(&attr) { in build_codec_map()
/webrtc/turn/src/server/
H A Drequest.rs620 for attr in &m.attributes.0 { in handle_create_permission_request()
621 if attr.typ != ATTR_XOR_PEER_ADDRESS { in handle_create_permission_request()