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

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

Issue 2018693002: Create a new connection if a candidate reuses an address (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Sync with head 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void HandleAllTimedOut(); 213 void HandleAllTimedOut();
214 void MaybeStopPortAllocatorSessions(); 214 void MaybeStopPortAllocatorSessions();
215 TransportChannelState ComputeState() const; 215 TransportChannelState ComputeState() const;
216 216
217 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; 217 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
218 bool CreateConnections(const Candidate& remote_candidate, 218 bool CreateConnections(const Candidate& remote_candidate,
219 PortInterface* origin_port); 219 PortInterface* origin_port);
220 bool CreateConnection(PortInterface* port, 220 bool CreateConnection(PortInterface* port,
221 const Candidate& remote_candidate, 221 const Candidate& remote_candidate,
222 PortInterface* origin_port); 222 PortInterface* origin_port);
223 bool MaybeCreateConnection(PortInterface* port,
224 const Candidate& remote_candidate,
225 PortInterface* origin_port);
pthatcher1 2016/05/27 18:42:54 Can you leave a comment explaining when we create
honghaiz3 2016/05/31 18:57:31 Removed the maybe method.
223 bool FindConnection(cricket::Connection* connection) const; 226 bool FindConnection(cricket::Connection* connection) const;
224 227
225 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); 228 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate);
226 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 229 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
227 void RememberRemoteCandidate(const Candidate& remote_candidate, 230 void RememberRemoteCandidate(const Candidate& remote_candidate,
228 PortInterface* origin_port); 231 PortInterface* origin_port);
229 bool IsPingable(Connection* conn, int64_t now); 232 bool IsPingable(Connection* conn, int64_t now);
230 void PingConnection(Connection* conn); 233 void PingConnection(Connection* conn);
231 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); 234 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session);
232 void AddConnection(Connection* connection); 235 void AddConnection(Connection* connection);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 TransportChannelState state_ = TransportChannelState::STATE_INIT; 335 TransportChannelState state_ = TransportChannelState::STATE_INIT;
333 IceConfig config_; 336 IceConfig config_;
334 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 337 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
335 338
336 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 339 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
337 }; 340 };
338 341
339 } // namespace cricket 342 } // namespace cricket
340 343
341 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 344 #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