OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |