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

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

Issue 2093623004: Add config to prune TURN ports (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Partially disable the test TestEachInterfaceHasItsOwnTurnPorts Created 4 years, 5 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/stunport.h ('k') | webrtc/p2p/base/turnport.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 void PrepareAddress() override; 55 void PrepareAddress() override;
56 56
57 int GetOption(rtc::Socket::Option opt, int* value) override; 57 int GetOption(rtc::Socket::Option opt, int* value) override;
58 int SetOption(rtc::Socket::Option opt, int value) override; 58 int SetOption(rtc::Socket::Option opt, int value) override;
59 int GetError() override; 59 int GetError() override;
60 bool SupportsProtocol(const std::string& protocol) const override { 60 bool SupportsProtocol(const std::string& protocol) const override {
61 return protocol == TCP_PROTOCOL_NAME || protocol == SSLTCP_PROTOCOL_NAME; 61 return protocol == TCP_PROTOCOL_NAME || protocol == SSLTCP_PROTOCOL_NAME;
62 } 62 }
63 63
64 ProtocolType GetProtocol() const override { return PROTO_TCP; }
65
64 protected: 66 protected:
65 TCPPort(rtc::Thread* thread, 67 TCPPort(rtc::Thread* thread,
66 rtc::PacketSocketFactory* factory, 68 rtc::PacketSocketFactory* factory,
67 rtc::Network* network, 69 rtc::Network* network,
68 const rtc::IPAddress& ip, 70 const rtc::IPAddress& ip,
69 uint16_t min_port, 71 uint16_t min_port,
70 uint16_t max_port, 72 uint16_t max_port,
71 const std::string& username, 73 const std::string& username,
72 const std::string& password, 74 const std::string& password,
73 bool allow_listen); 75 bool allow_listen);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 185
184 // Allow test case to overwrite the default timeout period. 186 // Allow test case to overwrite the default timeout period.
185 int reconnection_timeout_; 187 int reconnection_timeout_;
186 188
187 friend class TCPPort; 189 friend class TCPPort;
188 }; 190 };
189 191
190 } // namespace cricket 192 } // namespace cricket
191 193
192 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ 194 #endif // WEBRTC_P2P_BASE_TCPPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/stunport.h ('k') | webrtc/p2p/base/turnport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698