| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // End the probe with the given |status|. Invokes |fininsh_callback|, which | 140 // End the probe with the given |status|. Invokes |fininsh_callback|, which |
| 141 // may destroy the class. | 141 // may destroy the class. |
| 142 void End(StunProber::Status status); | 142 void End(StunProber::Status status); |
| 143 | 143 |
| 144 Requester* CreateRequester(); | 144 Requester* CreateRequester(); |
| 145 | 145 |
| 146 Requester* current_requester_ = nullptr; | 146 Requester* current_requester_ = nullptr; |
| 147 | 147 |
| 148 // The time when the next request should go out. | 148 // The time when the next request should go out. |
| 149 uint64 next_request_time_ms_ = 0; | 149 uint64_t next_request_time_ms_ = 0; |
| 150 | 150 |
| 151 // Total requests sent so far. | 151 // Total requests sent so far. |
| 152 uint32 num_request_sent_ = 0; | 152 uint32_t num_request_sent_ = 0; |
| 153 | 153 |
| 154 bool shared_socket_mode_ = false; | 154 bool shared_socket_mode_ = false; |
| 155 | 155 |
| 156 // How many requests should be done against each resolved IP. | 156 // How many requests should be done against each resolved IP. |
| 157 uint32 requests_per_ip_ = 0; | 157 uint32_t requests_per_ip_ = 0; |
| 158 | 158 |
| 159 // Milliseconds to pause between each STUN request. | 159 // Milliseconds to pause between each STUN request. |
| 160 int interval_ms_; | 160 int interval_ms_; |
| 161 | 161 |
| 162 // Timeout period after the last request is sent. | 162 // Timeout period after the last request is sent. |
| 163 int timeout_ms_; | 163 int timeout_ms_; |
| 164 | 164 |
| 165 // STUN server name to be resolved. | 165 // STUN server name to be resolved. |
| 166 std::vector<rtc::SocketAddress> servers_; | 166 std::vector<rtc::SocketAddress> servers_; |
| 167 | 167 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 189 rtc::AsyncInvoker invoker_; | 189 rtc::AsyncInvoker invoker_; |
| 190 | 190 |
| 191 rtc::NetworkManager::NetworkList networks_; | 191 rtc::NetworkManager::NetworkList networks_; |
| 192 | 192 |
| 193 RTC_DISALLOW_COPY_AND_ASSIGN(StunProber); | 193 RTC_DISALLOW_COPY_AND_ASSIGN(StunProber); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace stunprober | 196 } // namespace stunprober |
| 197 | 197 |
| 198 #endif // WEBRTC_P2P_STUNPROBER_STUNPROBER_H_ | 198 #endif // WEBRTC_P2P_STUNPROBER_STUNPROBER_H_ |
| OLD | NEW |