Skip to content

Commit f45bb4a

Browse files
committed
update doc for UDPMux
1 parent 6fc9ddb commit f45bb4a

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/api/setting_engine/mod.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub struct SettingEngine {
6969
pub(crate) vnet: Option<Arc<Net>>,
7070
//BufferFactory :func(packetType packetio.BufferPacketType, ssrc uint32) io.ReadWriteCloser,
7171
//iceTCPMux :ice.TCPMux,?
72-
//iceUDPMux :ice.UDPMux,?
7372
//iceProxyDialer :proxy.Dialer,?
7473
pub(crate) udp_network: UDPNetwork,
7574
pub(crate) disable_media_engine_copy: bool,
@@ -134,6 +133,9 @@ impl SettingEngine {
134133
self.timeout.ice_relay_acceptance_min_wait = t;
135134
}
136135

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

278-
// SetICEUDPMux allows ICE traffic to come through a single UDP port, drastically
279-
// simplifying deployments where ports will need to be opened/forwarded.
280-
// UDPMux should be started prior to creating PeerConnections.
281-
//pub fn SetICEUDPMux(&mut self, udpMux ice.UDPMux) {
282-
// self.iceUDPMux = udpMux
283-
//}
284-
285280
// SetICEProxyDialer sets the proxy dialer interface based on golang.org/x/net/proxy.
286281
//pub fn SetICEProxyDialer(&mut self, d proxy.Dialer) {
287282
// self.iceProxyDialer = d

0 commit comments

Comments
 (0)