| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } | 171 bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } |
| 172 | 172 |
| 173 // A transport channel is weak if the current best connection is either | 173 // A transport channel is weak if the current best connection is either |
| 174 // not receiving or not writable, or if there is no best connection at all. | 174 // not receiving or not writable, or if there is no best connection at all. |
| 175 bool weak() const; | 175 bool weak() const; |
| 176 void UpdateConnectionStates(); | 176 void UpdateConnectionStates(); |
| 177 void RequestSort(); | 177 void RequestSort(); |
| 178 void SortConnections(); | 178 void SortConnections(); |
| 179 void SwitchBestConnectionTo(Connection* conn); | 179 void SwitchBestConnectionTo(Connection* conn); |
| 180 void UpdateChannelState(); | 180 void UpdateChannelState(); |
| 181 void HandleWritable(); | |
| 182 void HandleNotWritable(); | |
| 183 void HandleAllTimedOut(); | 181 void HandleAllTimedOut(); |
| 184 void MaybeStopPortAllocatorSessions(); | 182 void MaybeStopPortAllocatorSessions(); |
| 185 | 183 |
| 186 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; | 184 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; |
| 187 bool CreateConnections(const Candidate& remote_candidate, | 185 bool CreateConnections(const Candidate& remote_candidate, |
| 188 PortInterface* origin_port); | 186 PortInterface* origin_port); |
| 189 bool CreateConnection(PortInterface* port, | 187 bool CreateConnection(PortInterface* port, |
| 190 const Candidate& remote_candidate, | 188 const Candidate& remote_candidate, |
| 191 PortInterface* origin_port); | 189 PortInterface* origin_port); |
| 192 bool FindConnection(cricket::Connection* connection) const; | 190 bool FindConnection(cricket::Connection* connection) const; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 uint32_t last_ping_sent_ms_ = 0; | 259 uint32_t last_ping_sent_ms_ = 0; |
| 262 bool gather_continually_ = false; | 260 bool gather_continually_ = false; |
| 263 int weak_ping_delay_ = WEAK_PING_DELAY; | 261 int weak_ping_delay_ = WEAK_PING_DELAY; |
| 264 | 262 |
| 265 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 263 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 266 }; | 264 }; |
| 267 | 265 |
| 268 } // namespace cricket | 266 } // namespace cricket |
| 269 | 267 |
| 270 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 268 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |