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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.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, 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 #include "webrtc/p2p/base/p2ptransport.h" 32 #include "webrtc/p2p/base/p2ptransport.h"
33 #include "webrtc/p2p/base/portallocator.h" 33 #include "webrtc/p2p/base/portallocator.h"
34 #include "webrtc/p2p/base/portinterface.h" 34 #include "webrtc/p2p/base/portinterface.h"
35 #include "webrtc/p2p/base/transportchannelimpl.h" 35 #include "webrtc/p2p/base/transportchannelimpl.h"
36 #include "webrtc/base/asyncpacketsocket.h" 36 #include "webrtc/base/asyncpacketsocket.h"
37 #include "webrtc/base/sigslot.h" 37 #include "webrtc/base/sigslot.h"
38 38
39 namespace cricket { 39 namespace cricket {
40 40
41 extern const int WEAK_PING_INTERVAL; 41 extern const int WEAK_PING_INTERVAL;
42 static const int kMinNumPingsSent = 3;
pthatcher1 2016/05/25 17:29:13 Can we keep the same style? And a slightly better
honghaiz3 2016/05/25 18:40:02 Done.
42 43
43 struct IceParameters { 44 struct IceParameters {
44 std::string ufrag; 45 std::string ufrag;
45 std::string pwd; 46 std::string pwd;
46 IceParameters(const std::string& ice_ufrag, const std::string& ice_pwd) 47 IceParameters(const std::string& ice_ufrag, const std::string& ice_pwd)
47 : ufrag(ice_ufrag), pwd(ice_pwd) {} 48 : ufrag(ice_ufrag), pwd(ice_pwd) {}
48 49
49 bool operator==(const IceParameters& other) { 50 bool operator==(const IceParameters& other) {
50 return ufrag == other.ufrag && pwd == other.pwd; 51 return ufrag == other.ufrag && pwd == other.pwd;
51 } 52 }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 TransportChannelState state_ = TransportChannelState::STATE_INIT; 332 TransportChannelState state_ = TransportChannelState::STATE_INIT;
332 IceConfig config_; 333 IceConfig config_;
333 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 334 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
334 335
335 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 336 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
336 }; 337 };
337 338
338 } // namespace cricket 339 } // namespace cricket
339 340
340 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 341 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | webrtc/p2p/base/p2ptransportchannel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698