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

Side by Side Diff: webrtc/p2p/base/stunport.cc

Issue 2099023002: Fix the turn and udp port type. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with head Created 4 years, 5 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
« no previous file with comments | « webrtc/p2p/base/port.cc ('k') | webrtc/p2p/base/stunport_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 UDPPort::UDPPort(rtc::Thread* thread, 162 UDPPort::UDPPort(rtc::Thread* thread,
163 rtc::PacketSocketFactory* factory, 163 rtc::PacketSocketFactory* factory,
164 rtc::Network* network, 164 rtc::Network* network,
165 rtc::AsyncPacketSocket* socket, 165 rtc::AsyncPacketSocket* socket,
166 const std::string& username, 166 const std::string& username,
167 const std::string& password, 167 const std::string& password,
168 const std::string& origin, 168 const std::string& origin,
169 bool emit_local_for_anyaddress) 169 bool emit_local_for_anyaddress)
170 : Port(thread, 170 : Port(thread,
171 LOCAL_PORT_TYPE,
171 factory, 172 factory,
172 network, 173 network,
173 socket->GetLocalAddress().ipaddr(), 174 socket->GetLocalAddress().ipaddr(),
174 username, 175 username,
175 password), 176 password),
176 requests_(thread), 177 requests_(thread),
177 socket_(socket), 178 socket_(socket),
178 error_(0), 179 error_(0),
179 ready_(false), 180 ready_(false),
180 stun_keepalive_delay_(KEEPALIVE_DELAY), 181 stun_keepalive_delay_(KEEPALIVE_DELAY),
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 const std::vector<Candidate>& existing_candidates = Candidates(); 508 const std::vector<Candidate>& existing_candidates = Candidates();
508 std::vector<Candidate>::const_iterator it = existing_candidates.begin(); 509 std::vector<Candidate>::const_iterator it = existing_candidates.begin();
509 for (; it != existing_candidates.end(); ++it) { 510 for (; it != existing_candidates.end(); ++it) {
510 if (it->address() == addr) 511 if (it->address() == addr)
511 return true; 512 return true;
512 } 513 }
513 return false; 514 return false;
514 } 515 }
515 516
516 } // namespace cricket 517 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port.cc ('k') | webrtc/p2p/base/stunport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698