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