Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: webrtc/p2p/client/basicportallocator.h

Issue 2171183002: Remove ports that are not used by any channel after timeout (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/portallocator.h ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/portallocator.h ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698