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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 void RememberRemoteCandidate(const Candidate& remote_candidate, | 253 void RememberRemoteCandidate(const Candidate& remote_candidate, |
254 PortInterface* origin_port); | 254 PortInterface* origin_port); |
255 bool IsPingable(Connection* conn, int64_t now); | 255 bool IsPingable(Connection* conn, int64_t now); |
256 bool IsSelectedConnectionPingable(int64_t now); | 256 bool IsSelectedConnectionPingable(int64_t now); |
257 int CalculateActiveWritablePingInterval(Connection* conn, int64_t now); | 257 int CalculateActiveWritablePingInterval(Connection* conn, int64_t now); |
258 void PingConnection(Connection* conn); | 258 void PingConnection(Connection* conn); |
259 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); | 259 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); |
260 void AddConnection(Connection* connection); | 260 void AddConnection(Connection* connection); |
261 | 261 |
262 void OnPortReady(PortAllocatorSession *session, PortInterface* port); | 262 void OnPortReady(PortAllocatorSession *session, PortInterface* port); |
| 263 void OnPortPruned(PortAllocatorSession* session, PortInterface* port); |
| 264 // Returns true if the port is found and removed from |ports_|. |
| 265 bool RemovePort(PortInterface* port); |
263 void OnCandidatesReady(PortAllocatorSession *session, | 266 void OnCandidatesReady(PortAllocatorSession *session, |
264 const std::vector<Candidate>& candidates); | 267 const std::vector<Candidate>& candidates); |
265 void OnCandidatesAllocationDone(PortAllocatorSession* session); | 268 void OnCandidatesAllocationDone(PortAllocatorSession* session); |
266 void OnUnknownAddress(PortInterface* port, | 269 void OnUnknownAddress(PortInterface* port, |
267 const rtc::SocketAddress& addr, | 270 const rtc::SocketAddress& addr, |
268 ProtocolType proto, | 271 ProtocolType proto, |
269 IceMessage* stun_msg, | 272 IceMessage* stun_msg, |
270 const std::string& remote_username, | 273 const std::string& remote_username, |
271 bool port_muxed); | 274 bool port_muxed); |
272 void OnPortDestroyed(PortInterface* port); | 275 void OnPortDestroyed(PortInterface* port); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 369 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
367 IceConfig config_; | 370 IceConfig config_; |
368 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. | 371 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
369 | 372 |
370 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 373 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
371 }; | 374 }; |
372 | 375 |
373 } // namespace cricket | 376 } // namespace cricket |
374 | 377 |
375 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 378 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |