Skip to content

Commit

Permalink
update doc for UDPMux
Browse files Browse the repository at this point in the history
  • Loading branch information
rainliu committed Nov 21, 2021
1 parent 6fc9ddb commit f45bb4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/api/setting_engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ pub struct SettingEngine {
pub(crate) vnet: Option<Arc<Net>>,
//BufferFactory :func(packetType packetio.BufferPacketType, ssrc uint32) io.ReadWriteCloser,
//iceTCPMux :ice.TCPMux,?
//iceUDPMux :ice.UDPMux,?
//iceProxyDialer :proxy.Dialer,?
pub(crate) udp_network: UDPNetwork,
pub(crate) disable_media_engine_copy: bool,
Expand Down Expand Up @@ -134,6 +133,9 @@ impl SettingEngine {
self.timeout.ice_relay_acceptance_min_wait = t;
}

/// set_udp_network allows ICE traffic to come through Ephemeral or UDPMux.
/// UDPMux drastically simplifying deployments where ports will need to be opened/forwarded.
/// UDPMux should be started prior to creating PeerConnections.
pub fn set_udp_network(&mut self, udp_network: UDPNetwork) {
self.udp_network = udp_network;
}
Expand Down Expand Up @@ -275,13 +277,6 @@ impl SettingEngine {
// self.iceTCPMux = tcpMux
//}

// SetICEUDPMux allows ICE traffic to come through a single UDP port, drastically
// simplifying deployments where ports will need to be opened/forwarded.
// UDPMux should be started prior to creating PeerConnections.
//pub fn SetICEUDPMux(&mut self, udpMux ice.UDPMux) {
// self.iceUDPMux = udpMux
//}

// SetICEProxyDialer sets the proxy dialer interface based on golang.org/x/net/proxy.
//pub fn SetICEProxyDialer(&mut self, d proxy.Dialer) {
// self.iceProxyDialer = d
Expand Down

0 comments on commit f45bb4a

Please sign in to comment.