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 26 matching lines...) Expand all Loading... |
37 const rtc::SocketAddress& relay_server_ssl); | 37 const rtc::SocketAddress& relay_server_ssl); |
38 virtual ~BasicPortAllocator(); | 38 virtual ~BasicPortAllocator(); |
39 | 39 |
40 void SetIceServers( | 40 void SetIceServers( |
41 const ServerAddresses& stun_servers, | 41 const ServerAddresses& stun_servers, |
42 const std::vector<RelayServerConfig>& turn_servers) override { | 42 const std::vector<RelayServerConfig>& turn_servers) override { |
43 stun_servers_ = stun_servers; | 43 stun_servers_ = stun_servers; |
44 turn_servers_ = turn_servers; | 44 turn_servers_ = turn_servers; |
45 } | 45 } |
46 | 46 |
| 47 void SetNetworkIgnoreMask(int network_ignore_mask) override { |
| 48 network_manager_->SetNetworkIgnoreMask(network_ignore_mask); |
| 49 } |
| 50 |
47 rtc::NetworkManager* network_manager() { return network_manager_; } | 51 rtc::NetworkManager* network_manager() { return network_manager_; } |
48 | 52 |
49 // If socket_factory() is set to NULL each PortAllocatorSession | 53 // If socket_factory() is set to NULL each PortAllocatorSession |
50 // creates its own socket factory. | 54 // creates its own socket factory. |
51 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } | 55 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } |
52 | 56 |
53 const ServerAddresses& stun_servers() const { | 57 const ServerAddresses& stun_servers() const { |
54 return stun_servers_; | 58 return stun_servers_; |
55 } | 59 } |
56 | 60 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_; | 316 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_; |
313 // There will be only one udp port per AllocationSequence. | 317 // There will be only one udp port per AllocationSequence. |
314 UDPPort* udp_port_; | 318 UDPPort* udp_port_; |
315 std::vector<TurnPort*> turn_ports_; | 319 std::vector<TurnPort*> turn_ports_; |
316 int phase_; | 320 int phase_; |
317 }; | 321 }; |
318 | 322 |
319 } // namespace cricket | 323 } // namespace cricket |
320 | 324 |
321 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ | 325 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ |
OLD | NEW |