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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void StopGettingPorts() override; | 101 void StopGettingPorts() override; |
102 void ClearGettingPorts() override; | 102 void ClearGettingPorts() override; |
103 bool IsGettingPorts() override { return state_ == SessionState::GATHERING; } | 103 bool IsGettingPorts() override { return state_ == SessionState::GATHERING; } |
104 bool IsCleared() const override { return state_ == SessionState::CLEARED; } | 104 bool IsCleared() const override { return state_ == SessionState::CLEARED; } |
105 bool IsStopped() const override { return state_ == SessionState::STOPPED; } | 105 bool IsStopped() const override { return state_ == SessionState::STOPPED; } |
106 // These will all be cricket::Ports. | 106 // These will all be cricket::Ports. |
107 std::vector<PortInterface*> ReadyPorts() const override; | 107 std::vector<PortInterface*> ReadyPorts() const override; |
108 std::vector<Candidate> ReadyCandidates() const override; | 108 std::vector<Candidate> ReadyCandidates() const override; |
109 bool CandidatesAllocationDone() const override; | 109 bool CandidatesAllocationDone() const override; |
110 void RegatherOnFailedNetworks() override; | 110 void RegatherOnFailedNetworks() override; |
| 111 void PruneAllPorts() override; |
111 | 112 |
112 protected: | 113 protected: |
113 void UpdateIceParametersInternal() override; | 114 void UpdateIceParametersInternal() override; |
114 | 115 |
115 // Starts the process of getting the port configurations. | 116 // Starts the process of getting the port configurations. |
116 virtual void GetPortConfigurations(); | 117 virtual void GetPortConfigurations(); |
117 | 118 |
118 // Adds a port configuration that is now ready. Once we have one for each | 119 // Adds a port configuration that is now ready. Once we have one for each |
119 // network (or a timeout occurs), we will start allocating ports. | 120 // network (or a timeout occurs), we will start allocating ports. |
120 virtual void ConfigReady(PortConfiguration* config); | 121 virtual void ConfigReady(PortConfiguration* config); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; | 356 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; |
356 // There will be only one udp port per AllocationSequence. | 357 // There will be only one udp port per AllocationSequence. |
357 UDPPort* udp_port_; | 358 UDPPort* udp_port_; |
358 std::vector<TurnPort*> turn_ports_; | 359 std::vector<TurnPort*> turn_ports_; |
359 int phase_; | 360 int phase_; |
360 }; | 361 }; |
361 | 362 |
362 } // namespace cricket | 363 } // namespace cricket |
363 | 364 |
364 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ | 365 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ |
OLD | NEW |