jingle_ice_udp: Add a constructor for Transport.
This commit is contained in:
parent
7f8cdc5bf0
commit
b91e5bdc4e
1 changed files with 12 additions and 0 deletions
|
@ -26,6 +26,18 @@ generate_element!(
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
impl Transport {
|
||||||
|
/// Create a new ICE-UDP transport.
|
||||||
|
pub fn new() -> Transport {
|
||||||
|
Transport {
|
||||||
|
pwd: None,
|
||||||
|
ufrag: None,
|
||||||
|
candidates: Vec::new(),
|
||||||
|
fingerprint: None,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
generate_attribute!(
|
generate_attribute!(
|
||||||
/// A Candidate Type as defined in ICE-CORE.
|
/// A Candidate Type as defined in ICE-CORE.
|
||||||
Type, "type", {
|
Type, "type", {
|
||||||
|
|
Loading…
Reference in a new issue