| 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 16 matching lines...) Expand all Loading... |
| 27 #include "webrtc/p2p/base/p2ptransport.h" | 27 #include "webrtc/p2p/base/p2ptransport.h" |
| 28 #include "webrtc/p2p/base/portallocator.h" | 28 #include "webrtc/p2p/base/portallocator.h" |
| 29 #include "webrtc/p2p/base/portinterface.h" | 29 #include "webrtc/p2p/base/portinterface.h" |
| 30 #include "webrtc/p2p/base/transport.h" | 30 #include "webrtc/p2p/base/transport.h" |
| 31 #include "webrtc/p2p/base/transportchannelimpl.h" | 31 #include "webrtc/p2p/base/transportchannelimpl.h" |
| 32 #include "webrtc/base/asyncpacketsocket.h" | 32 #include "webrtc/base/asyncpacketsocket.h" |
| 33 #include "webrtc/base/sigslot.h" | 33 #include "webrtc/base/sigslot.h" |
| 34 | 34 |
| 35 namespace cricket { | 35 namespace cricket { |
| 36 | 36 |
| 37 extern const uint32_t WEAK_PING_DELAY; |
| 38 |
| 37 // Adds the port on which the candidate originated. | 39 // Adds the port on which the candidate originated. |
| 38 class RemoteCandidate : public Candidate { | 40 class RemoteCandidate : public Candidate { |
| 39 public: | 41 public: |
| 40 RemoteCandidate(const Candidate& c, PortInterface* origin_port) | 42 RemoteCandidate(const Candidate& c, PortInterface* origin_port) |
| 41 : Candidate(c), origin_port_(origin_port) {} | 43 : Candidate(c), origin_port_(origin_port) {} |
| 42 | 44 |
| 43 PortInterface* origin_port() { return origin_port_; } | 45 PortInterface* origin_port() { return origin_port_; } |
| 44 | 46 |
| 45 private: | 47 private: |
| 46 PortInterface* origin_port_; | 48 PortInterface* origin_port_; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 IceMode remote_ice_mode_; | 247 IceMode remote_ice_mode_; |
| 246 IceRole ice_role_; | 248 IceRole ice_role_; |
| 247 uint64_t tiebreaker_; | 249 uint64_t tiebreaker_; |
| 248 uint32_t remote_candidate_generation_; | 250 uint32_t remote_candidate_generation_; |
| 249 IceGatheringState gathering_state_; | 251 IceGatheringState gathering_state_; |
| 250 | 252 |
| 251 int check_receiving_delay_; | 253 int check_receiving_delay_; |
| 252 int receiving_timeout_; | 254 int receiving_timeout_; |
| 253 uint32_t last_ping_sent_ms_ = 0; | 255 uint32_t last_ping_sent_ms_ = 0; |
| 254 bool gather_continually_ = false; | 256 bool gather_continually_ = false; |
| 257 int weak_ping_delay_ = WEAK_PING_DELAY; |
| 255 | 258 |
| 256 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 259 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 257 }; | 260 }; |
| 258 | 261 |
| 259 } // namespace cricket | 262 } // namespace cricket |
| 260 | 263 |
| 261 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 264 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |