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

Unified Diff: webrtc/p2p/base/transport.h

Issue 1577233006: Implement Turn/Turn first logic for connection selection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix test cases Created 4 years, 10 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
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.h
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h
index 6b4b37d4c56b89e0abc9617ff58b1fc92d96170e..feb8050ebc95328d35ff4ece2a8e49526a78b00f 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -147,6 +147,28 @@ struct IceConfig {
int backup_connection_ping_interval = -1;
// If true, the most recent port allocator session will keep on running.
bool gather_continually = false;
+
+ // Whether we should prioritize Relay/Relay candidate when nothing
+ // is writable yet.
+ bool prioritize_most_likely_candidate_pairs = false;
+
+ // If the current best connection is both writable and receiving,
+ // then we will also try hard to make sure it is pinged at this rate
+ // (Default value is a little less than 2 * STRONG_PING_DELAY).
+ int max_strong_delay = -1;
+
+ IceConfig() {}
+ IceConfig(int receiving_timeout,
+ int backup_connection_ping_interval,
+ bool gather_continually,
+ bool prioritize_most_likely_candidate_pairs,
+ int max_strong_delay)
+ : receiving_timeout_ms(receiving_timeout),
+ backup_connection_ping_interval(backup_connection_ping_interval),
+ gather_continually(gather_continually),
+ prioritize_most_likely_candidate_pairs(
+ prioritize_most_likely_candidate_pairs),
+ max_strong_delay(max_strong_delay) {}
};
bool BadTransportDescription(const std::string& desc, std::string* err_desc);
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698