| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 uint32_t* flags); | 322 uint32_t* flags); |
| 323 | 323 |
| 324 // Starts and stops the sequence. When started, it will continue allocating | 324 // Starts and stops the sequence. When started, it will continue allocating |
| 325 // new ports on its own timed schedule. | 325 // new ports on its own timed schedule. |
| 326 void Start(); | 326 void Start(); |
| 327 void Stop(); | 327 void Stop(); |
| 328 | 328 |
| 329 // MessageHandler | 329 // MessageHandler |
| 330 void OnMessage(rtc::Message* msg); | 330 void OnMessage(rtc::Message* msg); |
| 331 | 331 |
| 332 void EnableProtocol(ProtocolType proto); | |
| 333 bool ProtocolEnabled(ProtocolType proto) const; | |
| 334 | |
| 335 // Signal from AllocationSequence, when it's done with allocating ports. | 332 // Signal from AllocationSequence, when it's done with allocating ports. |
| 336 // This signal is useful, when port allocation fails which doesn't result | 333 // This signal is useful, when port allocation fails which doesn't result |
| 337 // in any candidates. Using this signal BasicPortAllocatorSession can send | 334 // in any candidates. Using this signal BasicPortAllocatorSession can send |
| 338 // its candidate discovery conclusion signal. Without this signal, | 335 // its candidate discovery conclusion signal. Without this signal, |
| 339 // BasicPortAllocatorSession doesn't have any event to trigger signal. This | 336 // BasicPortAllocatorSession doesn't have any event to trigger signal. This |
| 340 // can also be achieved by starting timer in BPAS. | 337 // can also be achieved by starting timer in BPAS. |
| 341 sigslot::signal1<AllocationSequence*> SignalPortAllocationComplete; | 338 sigslot::signal1<AllocationSequence*> SignalPortAllocationComplete; |
| 342 | 339 |
| 343 protected: | 340 protected: |
| 344 // For testing. | 341 // For testing. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 374 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; | 371 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; |
| 375 // There will be only one udp port per AllocationSequence. | 372 // There will be only one udp port per AllocationSequence. |
| 376 UDPPort* udp_port_; | 373 UDPPort* udp_port_; |
| 377 std::vector<TurnPort*> turn_ports_; | 374 std::vector<TurnPort*> turn_ports_; |
| 378 int phase_; | 375 int phase_; |
| 379 }; | 376 }; |
| 380 | 377 |
| 381 } // namespace cricket | 378 } // namespace cricket |
| 382 | 379 |
| 383 #endif // P2P_CLIENT_BASICPORTALLOCATOR_H_ | 380 #endif // P2P_CLIENT_BASICPORTALLOCATOR_H_ |
| OLD | NEW |