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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 PortInterface* origin_port); | 261 PortInterface* origin_port); |
262 bool IsPingable(const Connection* conn, int64_t now) const; | 262 bool IsPingable(const Connection* conn, int64_t now) const; |
263 bool IsSelectedConnectionPingable(int64_t now); | 263 bool IsSelectedConnectionPingable(int64_t now); |
264 int CalculateActiveWritablePingInterval(const Connection* conn, | 264 int CalculateActiveWritablePingInterval(const Connection* conn, |
265 int64_t now) const; | 265 int64_t now) const; |
266 void PingConnection(Connection* conn); | 266 void PingConnection(Connection* conn); |
267 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); | 267 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); |
268 void AddConnection(Connection* connection); | 268 void AddConnection(Connection* connection); |
269 | 269 |
270 void OnPortReady(PortAllocatorSession *session, PortInterface* port); | 270 void OnPortReady(PortAllocatorSession *session, PortInterface* port); |
| 271 void OnPortPruned(PortAllocatorSession* session, PortInterface* port); |
| 272 // Returns true if the port is found and removed from |ports_|. |
| 273 bool RemovePort(PortInterface* port); |
271 void OnCandidatesReady(PortAllocatorSession *session, | 274 void OnCandidatesReady(PortAllocatorSession *session, |
272 const std::vector<Candidate>& candidates); | 275 const std::vector<Candidate>& candidates); |
273 void OnCandidatesAllocationDone(PortAllocatorSession* session); | 276 void OnCandidatesAllocationDone(PortAllocatorSession* session); |
274 void OnUnknownAddress(PortInterface* port, | 277 void OnUnknownAddress(PortInterface* port, |
275 const rtc::SocketAddress& addr, | 278 const rtc::SocketAddress& addr, |
276 ProtocolType proto, | 279 ProtocolType proto, |
277 IceMessage* stun_msg, | 280 IceMessage* stun_msg, |
278 const std::string& remote_username, | 281 const std::string& remote_username, |
279 bool port_muxed); | 282 bool port_muxed); |
280 void OnPortDestroyed(PortInterface* port); | 283 void OnPortDestroyed(PortInterface* port); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 IceConfig config_; | 377 IceConfig config_; |
375 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. | 378 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
376 bool started_pinging_ = false; | 379 bool started_pinging_ = false; |
377 | 380 |
378 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 381 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
379 }; | 382 }; |
380 | 383 |
381 } // namespace cricket | 384 } // namespace cricket |
382 | 385 |
383 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 386 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |