Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: webrtc/p2p/base/turnport.cc

Issue 2063823008: Adding IceConfig option to assume TURN/TURN candidate pairs will work. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rename IceConfig option and fix transition to STATE_WRITE_UNRELIABLE. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/turnport.cc
diff --git a/webrtc/p2p/base/turnport.cc b/webrtc/p2p/base/turnport.cc
index ff0c2922de28334f285e4592aefb9dc78d6db4ad..d4d6caf1422b2458405574b687500dd198831843 100644
--- a/webrtc/p2p/base/turnport.cc
+++ b/webrtc/p2p/base/turnport.cc
@@ -439,7 +439,8 @@ void TurnPort::OnAllocateMismatch() {
}
Connection* TurnPort::CreateConnection(const Candidate& address,
- CandidateOrigin origin) {
+ CandidateOrigin origin,
+ const IceConfig& config) {
// TURN-UDP can only connect to UDP candidates.
if (!SupportsProtocol(address.protocol())) {
return NULL;
@@ -461,7 +462,7 @@ Connection* TurnPort::CreateConnection(const Candidate& address,
// and TURN candidate later.
for (size_t index = 0; index < Candidates().size(); ++index) {
if (Candidates()[index].type() == RELAY_PORT_TYPE) {
- ProxyConnection* conn = new ProxyConnection(this, index, address);
+ ProxyConnection* conn = new ProxyConnection(this, index, address, config);
AddOrReplaceConnection(conn);
return conn;
}

Powered by Google App Engine
This is Rietveld 408576698