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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 IceRole GetIceRole() const override { return ice_role_; } | 64 IceRole GetIceRole() const override { return ice_role_; } |
65 void SetIceTiebreaker(uint64 tiebreaker) override; | 65 void SetIceTiebreaker(uint64 tiebreaker) override; |
66 void SetIceCredentials(const std::string& ice_ufrag, | 66 void SetIceCredentials(const std::string& ice_ufrag, |
67 const std::string& ice_pwd) override; | 67 const std::string& ice_pwd) override; |
68 void SetRemoteIceCredentials(const std::string& ice_ufrag, | 68 void SetRemoteIceCredentials(const std::string& ice_ufrag, |
69 const std::string& ice_pwd) override; | 69 const std::string& ice_pwd) override; |
70 void SetRemoteIceMode(IceMode mode) override; | 70 void SetRemoteIceMode(IceMode mode) override; |
71 void Connect() override; | 71 void Connect() override; |
72 void OnSignalingReady() override; | 72 void OnSignalingReady() override; |
73 void OnCandidate(const Candidate& candidate) override; | 73 void OnCandidate(const Candidate& candidate) override; |
| 74 bool GetIceProtocolType(IceProtocolType* type) const override; |
| 75 void SetIceProtocolType(IceProtocolType type) override; |
74 // Sets the receiving timeout in milliseconds. | 76 // Sets the receiving timeout in milliseconds. |
75 // This also sets the check_receiving_delay proportionally. | 77 // This also sets the check_receiving_delay proportionally. |
76 void SetReceivingTimeout(int receiving_timeout_ms) override; | 78 void SetReceivingTimeout(int receiving_timeout_ms) override; |
77 | 79 |
78 // From TransportChannel: | 80 // From TransportChannel: |
79 int SendPacket(const char *data, size_t len, | 81 int SendPacket(const char *data, size_t len, |
80 const rtc::PacketOptions& options, int flags) override; | 82 const rtc::PacketOptions& options, int flags) override; |
81 int SetOption(rtc::Socket::Option opt, int value) override; | 83 int SetOption(rtc::Socket::Option opt, int value) override; |
82 bool GetOption(rtc::Socket::Option opt, int* value) override; | 84 bool GetOption(rtc::Socket::Option opt, int* value) override; |
83 int GetError() override { return error_; } | 85 int GetError() override { return error_; } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 Connection* pending_best_connection_; | 238 Connection* pending_best_connection_; |
237 std::vector<RemoteCandidate> remote_candidates_; | 239 std::vector<RemoteCandidate> remote_candidates_; |
238 bool sort_dirty_; // indicates whether another sort is needed right now | 240 bool sort_dirty_; // indicates whether another sort is needed right now |
239 bool was_writable_; | 241 bool was_writable_; |
240 typedef std::map<rtc::Socket::Option, int> OptionMap; | 242 typedef std::map<rtc::Socket::Option, int> OptionMap; |
241 OptionMap options_; | 243 OptionMap options_; |
242 std::string ice_ufrag_; | 244 std::string ice_ufrag_; |
243 std::string ice_pwd_; | 245 std::string ice_pwd_; |
244 std::string remote_ice_ufrag_; | 246 std::string remote_ice_ufrag_; |
245 std::string remote_ice_pwd_; | 247 std::string remote_ice_pwd_; |
| 248 IceProtocolType protocol_type_; |
246 IceMode remote_ice_mode_; | 249 IceMode remote_ice_mode_; |
247 IceRole ice_role_; | 250 IceRole ice_role_; |
248 uint64 tiebreaker_; | 251 uint64 tiebreaker_; |
249 uint32 remote_candidate_generation_; | 252 uint32 remote_candidate_generation_; |
250 | 253 |
251 int check_receiving_delay_; | 254 int check_receiving_delay_; |
252 int receiving_timeout_; | 255 int receiving_timeout_; |
253 | 256 |
254 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 257 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
255 }; | 258 }; |
256 | 259 |
257 } // namespace cricket | 260 } // namespace cricket |
258 | 261 |
259 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 262 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |