| 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 10 matching lines...) Expand all Loading... |
| 21 #include "webrtc/p2p/base/stunport.h" | 21 #include "webrtc/p2p/base/stunport.h" |
| 22 #include "webrtc/p2p/base/tcpport.h" | 22 #include "webrtc/p2p/base/tcpport.h" |
| 23 #include "webrtc/p2p/base/turnport.h" | 23 #include "webrtc/p2p/base/turnport.h" |
| 24 #include "webrtc/p2p/base/udpport.h" | 24 #include "webrtc/p2p/base/udpport.h" |
| 25 #include "webrtc/base/checks.h" | 25 #include "webrtc/base/checks.h" |
| 26 #include "webrtc/base/common.h" | 26 #include "webrtc/base/common.h" |
| 27 #include "webrtc/base/helpers.h" | 27 #include "webrtc/base/helpers.h" |
| 28 #include "webrtc/base/logging.h" | 28 #include "webrtc/base/logging.h" |
| 29 | 29 |
| 30 using rtc::CreateRandomId; | 30 using rtc::CreateRandomId; |
| 31 using rtc::CreateRandomString; | |
| 32 | 31 |
| 33 namespace { | 32 namespace { |
| 34 | 33 |
| 35 enum { | 34 enum { |
| 36 MSG_CONFIG_START, | 35 MSG_CONFIG_START, |
| 37 MSG_CONFIG_READY, | 36 MSG_CONFIG_READY, |
| 38 MSG_ALLOCATE, | 37 MSG_ALLOCATE, |
| 39 MSG_ALLOCATION_PHASE, | 38 MSG_ALLOCATION_PHASE, |
| 40 MSG_SHAKE, | 39 MSG_SHAKE, |
| 41 MSG_SEQUENCEOBJECTS_CREATED, | 40 MSG_SEQUENCEOBJECTS_CREATED, |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 ServerAddresses servers; | 1184 ServerAddresses servers; |
| 1186 for (size_t i = 0; i < relays.size(); ++i) { | 1185 for (size_t i = 0; i < relays.size(); ++i) { |
| 1187 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { | 1186 if (relays[i].type == turn_type && SupportsProtocol(relays[i], type)) { |
| 1188 servers.insert(relays[i].ports.front().address); | 1187 servers.insert(relays[i].ports.front().address); |
| 1189 } | 1188 } |
| 1190 } | 1189 } |
| 1191 return servers; | 1190 return servers; |
| 1192 } | 1191 } |
| 1193 | 1192 |
| 1194 } // namespace cricket | 1193 } // namespace cricket |
| OLD | NEW |