| 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 21 matching lines...) Expand all Loading... |
| 32 #include "webrtc/p2p/base/p2ptransport.h" | 32 #include "webrtc/p2p/base/p2ptransport.h" |
| 33 #include "webrtc/p2p/base/portallocator.h" | 33 #include "webrtc/p2p/base/portallocator.h" |
| 34 #include "webrtc/p2p/base/portinterface.h" | 34 #include "webrtc/p2p/base/portinterface.h" |
| 35 #include "webrtc/p2p/base/transportchannelimpl.h" | 35 #include "webrtc/p2p/base/transportchannelimpl.h" |
| 36 #include "webrtc/base/asyncpacketsocket.h" | 36 #include "webrtc/base/asyncpacketsocket.h" |
| 37 #include "webrtc/base/sigslot.h" | 37 #include "webrtc/base/sigslot.h" |
| 38 | 38 |
| 39 namespace cricket { | 39 namespace cricket { |
| 40 | 40 |
| 41 extern const int WEAK_PING_INTERVAL; | 41 extern const int WEAK_PING_INTERVAL; |
| 42 static const int MIN_PINGS_AT_WEAK_PING_INTERVAL = 3; |
| 42 | 43 |
| 43 struct IceParameters { | 44 struct IceParameters { |
| 44 std::string ufrag; | 45 std::string ufrag; |
| 45 std::string pwd; | 46 std::string pwd; |
| 46 IceParameters(const std::string& ice_ufrag, const std::string& ice_pwd) | 47 IceParameters(const std::string& ice_ufrag, const std::string& ice_pwd) |
| 47 : ufrag(ice_ufrag), pwd(ice_pwd) {} | 48 : ufrag(ice_ufrag), pwd(ice_pwd) {} |
| 48 | 49 |
| 49 bool operator==(const IceParameters& other) { | 50 bool operator==(const IceParameters& other) { |
| 50 return ufrag == other.ufrag && pwd == other.pwd; | 51 return ufrag == other.ufrag && pwd == other.pwd; |
| 51 } | 52 } |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 332 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
| 332 IceConfig config_; | 333 IceConfig config_; |
| 333 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. | 334 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
| 334 | 335 |
| 335 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 336 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 336 }; | 337 }; |
| 337 | 338 |
| 338 } // namespace cricket | 339 } // namespace cricket |
| 339 | 340 |
| 340 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 341 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |