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

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

Issue 2009763002: Ping connections with the fast rate until each connection is pinged at least three times. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 7 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/port.h
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h
index c850d31edc53ab68c89716aaaf3daa37a5f77e4d..704fbb7a65416d42fab37cd8858a43fcdcc0292d 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -562,6 +562,8 @@ class Connection : public CandidatePairInterface,
State state() const { return state_; }
+ int num_pings_sent() const { return num_pings_sent_; }
+
IceMode remote_ice_mode() const { return remote_ice_mode_; }
uint32_t ComputeNetworkCost() const;
@@ -648,6 +650,7 @@ class Connection : public CandidatePairInterface,
// Time duration to switch from receiving to not receiving.
int receiving_timeout_;
int64_t time_created_ms_;
+ int num_pings_sent_ = 0;
friend class Port;
friend class ConnectionRequest;

Powered by Google App Engine
This is Rietveld 408576698