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

Side by Side Diff: webrtc/p2p/base/relayport.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/portinterface.h ('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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int GetOption(rtc::Socket::Option opt, int* value) override; 61 int GetOption(rtc::Socket::Option opt, int* value) override;
62 int GetError() override; 62 int GetError() override;
63 bool SupportsProtocol(const std::string& protocol) const override { 63 bool SupportsProtocol(const std::string& protocol) const override {
64 // Relay port may create both TCP and UDP connections. 64 // Relay port may create both TCP and UDP connections.
65 return true; 65 return true;
66 } 66 }
67 67
68 const ProtocolAddress * ServerAddress(size_t index) const; 68 const ProtocolAddress * ServerAddress(size_t index) const;
69 bool IsReady() { return ready_; } 69 bool IsReady() { return ready_; }
70 70
71 ProtocolType GetProtocol() const override {
72 // We shouldn't be using RelayPort, but we need to provide an
73 // implementation here.
74 return PROTO_UDP;
75 }
76
71 // Used for testing. 77 // Used for testing.
72 sigslot::signal1<const ProtocolAddress*> SignalConnectFailure; 78 sigslot::signal1<const ProtocolAddress*> SignalConnectFailure;
73 sigslot::signal1<const ProtocolAddress*> SignalSoftTimeout; 79 sigslot::signal1<const ProtocolAddress*> SignalSoftTimeout;
74 80
75 protected: 81 protected:
76 RelayPort(rtc::Thread* thread, 82 RelayPort(rtc::Thread* thread,
77 rtc::PacketSocketFactory* factory, 83 rtc::PacketSocketFactory* factory,
78 rtc::Network*, 84 rtc::Network*,
79 const rtc::IPAddress& ip, 85 const rtc::IPAddress& ip,
80 uint16_t min_port, 86 uint16_t min_port,
(...skipping 28 matching lines...) Expand all
109 std::vector<ProtocolAddress> external_addr_; 115 std::vector<ProtocolAddress> external_addr_;
110 bool ready_; 116 bool ready_;
111 std::vector<RelayEntry*> entries_; 117 std::vector<RelayEntry*> entries_;
112 std::vector<OptionValue> options_; 118 std::vector<OptionValue> options_;
113 int error_; 119 int error_;
114 }; 120 };
115 121
116 } // namespace cricket 122 } // namespace cricket
117 123
118 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_ 124 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/portinterface.h ('k') | webrtc/p2p/base/stunport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698