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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const std::string& ice_ufrag, | 105 const std::string& ice_ufrag, |
106 const std::string& ice_pwd); | 106 const std::string& ice_pwd); |
107 ~BasicPortAllocatorSession(); | 107 ~BasicPortAllocatorSession(); |
108 | 108 |
109 virtual BasicPortAllocator* allocator() { return allocator_; } | 109 virtual BasicPortAllocator* allocator() { return allocator_; } |
110 rtc::Thread* network_thread() { return network_thread_; } | 110 rtc::Thread* network_thread() { return network_thread_; } |
111 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } | 111 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } |
112 | 112 |
113 virtual void StartGettingPorts(); | 113 virtual void StartGettingPorts(); |
114 virtual void StopGettingPorts(); | 114 virtual void StopGettingPorts(); |
| 115 virtual void ClearGettingPorts(); |
115 virtual bool IsGettingPorts() { return running_; } | 116 virtual bool IsGettingPorts() { return running_; } |
116 | 117 |
117 protected: | 118 protected: |
118 // Starts the process of getting the port configurations. | 119 // Starts the process of getting the port configurations. |
119 virtual void GetPortConfigurations(); | 120 virtual void GetPortConfigurations(); |
120 | 121 |
121 // Adds a port configuration that is now ready. Once we have one for each | 122 // Adds a port configuration that is now ready. Once we have one for each |
122 // network (or a timeout occurs), we will start allocating ports. | 123 // network (or a timeout occurs), we will start allocating ports. |
123 virtual void ConfigReady(PortConfiguration* config); | 124 virtual void ConfigReady(PortConfiguration* config); |
124 | 125 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_; | 326 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_; |
326 // There will be only one udp port per AllocationSequence. | 327 // There will be only one udp port per AllocationSequence. |
327 UDPPort* udp_port_; | 328 UDPPort* udp_port_; |
328 std::vector<TurnPort*> turn_ports_; | 329 std::vector<TurnPort*> turn_ports_; |
329 int phase_; | 330 int phase_; |
330 }; | 331 }; |
331 | 332 |
332 } // namespace cricket | 333 } // namespace cricket |
333 | 334 |
334 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ | 335 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ |
OLD | NEW |