| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 int server_priority, | 50 int server_priority, |
| 51 const std::string& origin) { | 51 const std::string& origin) { |
| 52 return new TurnPort(thread, factory, network, socket, username, password, | 52 return new TurnPort(thread, factory, network, socket, username, password, |
| 53 server_address, credentials, server_priority, origin); | 53 server_address, credentials, server_priority, origin); |
| 54 } | 54 } |
| 55 | 55 |
| 56 static TurnPort* Create(rtc::Thread* thread, | 56 static TurnPort* Create(rtc::Thread* thread, |
| 57 rtc::PacketSocketFactory* factory, | 57 rtc::PacketSocketFactory* factory, |
| 58 rtc::Network* network, | 58 rtc::Network* network, |
| 59 const rtc::IPAddress& ip, | 59 const rtc::IPAddress& ip, |
| 60 uint16 min_port, | 60 uint16_t min_port, |
| 61 uint16 max_port, | 61 uint16_t max_port, |
| 62 const std::string& username, // ice username. | 62 const std::string& username, // ice username. |
| 63 const std::string& password, // ice password. | 63 const std::string& password, // ice password. |
| 64 const ProtocolAddress& server_address, | 64 const ProtocolAddress& server_address, |
| 65 const RelayCredentials& credentials, | 65 const RelayCredentials& credentials, |
| 66 int server_priority, | 66 int server_priority, |
| 67 const std::string& origin) { | 67 const std::string& origin) { |
| 68 return new TurnPort(thread, factory, network, ip, min_port, max_port, | 68 return new TurnPort(thread, factory, network, ip, min_port, max_port, |
| 69 username, password, server_address, credentials, | 69 username, password, server_address, credentials, |
| 70 server_priority, origin); | 70 server_priority, origin); |
| 71 } | 71 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const std::string& password, | 142 const std::string& password, |
| 143 const ProtocolAddress& server_address, | 143 const ProtocolAddress& server_address, |
| 144 const RelayCredentials& credentials, | 144 const RelayCredentials& credentials, |
| 145 int server_priority, | 145 int server_priority, |
| 146 const std::string& origin); | 146 const std::string& origin); |
| 147 | 147 |
| 148 TurnPort(rtc::Thread* thread, | 148 TurnPort(rtc::Thread* thread, |
| 149 rtc::PacketSocketFactory* factory, | 149 rtc::PacketSocketFactory* factory, |
| 150 rtc::Network* network, | 150 rtc::Network* network, |
| 151 const rtc::IPAddress& ip, | 151 const rtc::IPAddress& ip, |
| 152 uint16 min_port, | 152 uint16_t min_port, |
| 153 uint16 max_port, | 153 uint16_t max_port, |
| 154 const std::string& username, | 154 const std::string& username, |
| 155 const std::string& password, | 155 const std::string& password, |
| 156 const ProtocolAddress& server_address, | 156 const ProtocolAddress& server_address, |
| 157 const RelayCredentials& credentials, | 157 const RelayCredentials& credentials, |
| 158 int server_priority, | 158 int server_priority, |
| 159 const std::string& origin); | 159 const std::string& origin); |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 enum { | 162 enum { |
| 163 MSG_ERROR = MSG_FIRST_AVAILABLE, | 163 MSG_ERROR = MSG_FIRST_AVAILABLE, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 friend class TurnEntry; | 245 friend class TurnEntry; |
| 246 friend class TurnAllocateRequest; | 246 friend class TurnAllocateRequest; |
| 247 friend class TurnRefreshRequest; | 247 friend class TurnRefreshRequest; |
| 248 friend class TurnCreatePermissionRequest; | 248 friend class TurnCreatePermissionRequest; |
| 249 friend class TurnChannelBindRequest; | 249 friend class TurnChannelBindRequest; |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace cricket | 252 } // namespace cricket |
| 253 | 253 |
| 254 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ | 254 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ |
| OLD | NEW |