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

Side by Side Diff: webrtc/p2p/base/portallocator.h

Issue 1275703006: Bug 4517: Enable connectivity for demo page when no STUN/TURN specifiefd. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 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/port_unittest.cc ('k') | webrtc/p2p/base/stunport.h » ('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 20 matching lines...) Expand all
31 PORTALLOCATOR_DISABLE_UDP = 0x01, 31 PORTALLOCATOR_DISABLE_UDP = 0x01,
32 PORTALLOCATOR_DISABLE_STUN = 0x02, 32 PORTALLOCATOR_DISABLE_STUN = 0x02,
33 PORTALLOCATOR_DISABLE_RELAY = 0x04, 33 PORTALLOCATOR_DISABLE_RELAY = 0x04,
34 PORTALLOCATOR_DISABLE_TCP = 0x08, 34 PORTALLOCATOR_DISABLE_TCP = 0x08,
35 PORTALLOCATOR_ENABLE_SHAKER = 0x10, 35 PORTALLOCATOR_ENABLE_SHAKER = 0x10,
36 PORTALLOCATOR_ENABLE_IPV6 = 0x40, 36 PORTALLOCATOR_ENABLE_IPV6 = 0x40,
37 PORTALLOCATOR_ENABLE_SHARED_UFRAG = 0x80, 37 PORTALLOCATOR_ENABLE_SHARED_UFRAG = 0x80,
38 PORTALLOCATOR_ENABLE_SHARED_SOCKET = 0x100, 38 PORTALLOCATOR_ENABLE_SHARED_SOCKET = 0x100,
39 PORTALLOCATOR_ENABLE_STUN_RETRANSMIT_ATTRIBUTE = 0x200, 39 PORTALLOCATOR_ENABLE_STUN_RETRANSMIT_ATTRIBUTE = 0x200,
40 PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION = 0x400, 40 PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION = 0x400,
41 PORTALLOCATOR_ENABLE_LOCALHOST_CANDIDATE = 0x800,
41 }; 42 };
42 43
43 const uint32 kDefaultPortAllocatorFlags = 0; 44 const uint32 kDefaultPortAllocatorFlags = 0;
44 45
45 const uint32 kDefaultStepDelay = 1000; // 1 sec step delay. 46 const uint32 kDefaultStepDelay = 1000; // 1 sec step delay.
46 // As per RFC 5245 Appendix B.1, STUN transactions need to be paced at certain 47 // As per RFC 5245 Appendix B.1, STUN transactions need to be paced at certain
47 // internal. Less than 20ms is not acceptable. We choose 50ms as our default. 48 // internal. Less than 20ms is not acceptable. We choose 50ms as our default.
48 const uint32 kMinimumStepDelay = 50; 49 const uint32 kMinimumStepDelay = 50;
49 50
50 // CF = CANDIDATE FILTER 51 // CF = CANDIDATE FILTER
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 int max_port_; 181 int max_port_;
181 uint32 step_delay_; 182 uint32 step_delay_;
182 bool allow_tcp_listen_; 183 bool allow_tcp_listen_;
183 uint32 candidate_filter_; 184 uint32 candidate_filter_;
184 std::string origin_; 185 std::string origin_;
185 }; 186 };
186 187
187 } // namespace cricket 188 } // namespace cricket
188 189
189 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ 190 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/p2p/base/stunport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698