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