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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.h

Issue 1944003002: Increase the stun ping interval. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: First Serveral pings are sent at faster rate. 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 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 bool CreateConnection(PortInterface* port, 219 bool CreateConnection(PortInterface* port,
220 const Candidate& remote_candidate, 220 const Candidate& remote_candidate,
221 PortInterface* origin_port); 221 PortInterface* origin_port);
222 bool FindConnection(cricket::Connection* connection) const; 222 bool FindConnection(cricket::Connection* connection) const;
223 223
224 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); 224 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate);
225 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 225 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
226 void RememberRemoteCandidate(const Candidate& remote_candidate, 226 void RememberRemoteCandidate(const Candidate& remote_candidate,
227 PortInterface* origin_port); 227 PortInterface* origin_port);
228 bool IsPingable(Connection* conn, int64_t now); 228 bool IsPingable(Connection* conn, int64_t now);
229 bool IsBestConnectionPingable();
229 void PingConnection(Connection* conn); 230 void PingConnection(Connection* conn);
230 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); 231 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session);
231 void AddConnection(Connection* connection); 232 void AddConnection(Connection* connection);
232 233
233 void OnPortReady(PortAllocatorSession *session, PortInterface* port); 234 void OnPortReady(PortAllocatorSession *session, PortInterface* port);
234 void OnCandidatesReady(PortAllocatorSession *session, 235 void OnCandidatesReady(PortAllocatorSession *session,
235 const std::vector<Candidate>& candidates); 236 const std::vector<Candidate>& candidates);
236 void OnCandidatesAllocationDone(PortAllocatorSession* session); 237 void OnCandidatesAllocationDone(PortAllocatorSession* session);
237 void OnUnknownAddress(PortInterface* port, 238 void OnUnknownAddress(PortInterface* port,
238 const rtc::SocketAddress& addr, 239 const rtc::SocketAddress& addr,
(...skipping 92 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