blob: d28f60b2e0bd97c11fbd33e747afc19f475dd62a [file] [log] [blame]
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +00001/*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11// P2PTransportChannel wraps up the state management of the connection between
12// two P2P clients. Clients have candidate ports for connecting, and
13// connections which are combinations of candidates from each end (Alice and
14// Bob each have candidates, one candidate from Alice and one candidate from
15// Bob are used to make a connection, repeat to make many connections).
16//
17// When all of the available connections become invalid (non-writable), we
18// kick off a process of determining more candidates and more connections.
19//
20#ifndef WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
21#define WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
22
23#include <map>
kwiberg3ec46792016-04-27 07:22:53 -070024#include <memory>
guoweis36f01372016-03-02 18:02:40 -080025#include <set>
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000026#include <string>
27#include <vector>
kwiberg4485ffb2016-04-26 08:14:39 -070028
29#include "webrtc/base/constructormagic.h"
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000030#include "webrtc/p2p/base/candidate.h"
Honghai Zhangcc411c02016-03-29 17:27:21 -070031#include "webrtc/p2p/base/candidatepairinterface.h"
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000032#include "webrtc/p2p/base/p2ptransport.h"
33#include "webrtc/p2p/base/portallocator.h"
34#include "webrtc/p2p/base/portinterface.h"
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000035#include "webrtc/p2p/base/transportchannelimpl.h"
36#include "webrtc/base/asyncpacketsocket.h"
37#include "webrtc/base/sigslot.h"
38
39namespace cricket {
40
Honghai Zhang049fbb12016-03-07 11:13:07 -080041extern const int WEAK_PING_INTERVAL;
zhihuang435264a2016-06-21 11:28:38 -070042extern const int STABILIZING_WRITABLE_CONNECTION_PING_INTERVAL;
43extern const int STABLE_WRITABLE_CONNECTION_PING_INTERVAL;
honghaiz524ecc22016-05-25 12:48:31 -070044static const int MIN_PINGS_AT_WEAK_PING_INTERVAL = 3;
guoweisb0bb77f2015-10-26 15:10:01 -070045
honghaiza54a0802015-12-16 18:37:23 -080046struct IceParameters {
47 std::string ufrag;
48 std::string pwd;
49 IceParameters(const std::string& ice_ufrag, const std::string& ice_pwd)
50 : ufrag(ice_ufrag), pwd(ice_pwd) {}
51
52 bool operator==(const IceParameters& other) {
53 return ufrag == other.ufrag && pwd == other.pwd;
54 }
55 bool operator!=(const IceParameters& other) { return !(*this == other); }
56};
57
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000058// Adds the port on which the candidate originated.
59class RemoteCandidate : public Candidate {
60 public:
61 RemoteCandidate(const Candidate& c, PortInterface* origin_port)
62 : Candidate(c), origin_port_(origin_port) {}
63
64 PortInterface* origin_port() { return origin_port_; }
65
66 private:
67 PortInterface* origin_port_;
68};
69
70// P2PTransportChannel manages the candidates and connection process to keep
71// two P2P clients connected to each other.
72class P2PTransportChannel : public TransportChannelImpl,
73 public rtc::MessageHandler {
74 public:
deadbeefcbecd352015-09-23 11:50:27 -070075 P2PTransportChannel(const std::string& transport_name,
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000076 int component,
mikescarlettb9dd7c52016-02-19 20:43:45 -080077 PortAllocator* allocator);
78 // TODO(mikescarlett): Deprecated. Remove when Chromium's
79 // IceTransportChannel does not depend on this.
80 P2PTransportChannel(const std::string& transport_name,
81 int component,
guidou74db7772016-02-18 01:57:49 -080082 P2PTransport* transport,
deadbeefcbecd352015-09-23 11:50:27 -070083 PortAllocator* allocator);
84 virtual ~P2PTransportChannel();
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000085
86 // From TransportChannelImpl:
Henrik Boströmf3ecdb92015-09-08 12:11:54 +020087 TransportChannelState GetState() const override;
88 void SetIceRole(IceRole role) override;
89 IceRole GetIceRole() const override { return ice_role_; }
Peter Boström0c4e06b2015-10-07 12:23:21 +020090 void SetIceTiebreaker(uint64_t tiebreaker) override;
Henrik Boströmf3ecdb92015-09-08 12:11:54 +020091 void SetIceCredentials(const std::string& ice_ufrag,
92 const std::string& ice_pwd) override;
93 void SetRemoteIceCredentials(const std::string& ice_ufrag,
94 const std::string& ice_pwd) override;
95 void SetRemoteIceMode(IceMode mode) override;
96 void Connect() override;
deadbeefcbecd352015-09-23 11:50:27 -070097 void MaybeStartGathering() override;
98 IceGatheringState gathering_state() const override {
99 return gathering_state_;
100 }
101 void AddRemoteCandidate(const Candidate& candidate) override;
Honghai Zhang7fb69db2016-03-14 11:59:18 -0700102 void RemoveRemoteCandidate(const Candidate& candidate) override;
Honghai Zhang049fbb12016-03-07 11:13:07 -0800103 // Sets the parameters in IceConfig. We do not set them blindly. Instead, we
104 // only update the parameter if it is considered set in |config|. For example,
105 // a negative value of receiving_timeout will be considered "not set" and we
106 // will not use it to update the respective parameter in |config_|.
deadbeef14f97f52016-06-22 17:14:15 -0700107 // TODO(deadbeef): Use rtc::Optional instead of negative values.
honghaiz1f429e32015-09-28 07:57:34 -0700108 void SetIceConfig(const IceConfig& config) override;
guoweis36f01372016-03-02 18:02:40 -0800109 const IceConfig& config() const;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000110
111 // From TransportChannel:
deadbeefcbecd352015-09-23 11:50:27 -0700112 int SendPacket(const char* data,
113 size_t len,
114 const rtc::PacketOptions& options,
115 int flags) override;
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200116 int SetOption(rtc::Socket::Option opt, int value) override;
117 bool GetOption(rtc::Socket::Option opt, int* value) override;
118 int GetError() override { return error_; }
119 bool GetStats(std::vector<ConnectionInfo>* stats) override;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000120
121 const Connection* best_connection() const { return best_connection_; }
122 void set_incoming_only(bool value) { incoming_only_ = value; }
123
124 // Note: This is only for testing purpose.
125 // |ports_| should not be changed from outside.
Peter Thatcher1fe120a2015-06-10 11:33:17 -0700126 const std::vector<PortInterface*>& ports() { return ports_; }
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000127
128 IceMode remote_ice_mode() const { return remote_ice_mode_; }
129
130 // DTLS methods.
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200131 bool IsDtlsActive() const override { return false; }
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000132
133 // Default implementation.
deadbeefcbecd352015-09-23 11:50:27 -0700134 bool GetSslRole(rtc::SSLRole* role) const override { return false; }
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000135
deadbeefcbecd352015-09-23 11:50:27 -0700136 bool SetSslRole(rtc::SSLRole role) override { return false; }
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000137
138 // Set up the ciphers to use for DTLS-SRTP.
Guo-wei Shieh521ed7b2015-11-18 19:41:53 -0800139 bool SetSrtpCryptoSuites(const std::vector<int>& ciphers) override {
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000140 return false;
141 }
142
pthatcher@webrtc.org3ee4fe52015-02-11 22:34:36 +0000143 // Find out which DTLS-SRTP cipher was negotiated.
Guo-wei Shieh521ed7b2015-11-18 19:41:53 -0800144 bool GetSrtpCryptoSuite(int* cipher) override { return false; }
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000145
pthatcher@webrtc.org3ee4fe52015-02-11 22:34:36 +0000146 // Find out which DTLS cipher was negotiated.
Guo-wei Shieh6caafbe2015-10-05 12:43:27 -0700147 bool GetSslCipherSuite(int* cipher) override { return false; }
pthatcher@webrtc.org3ee4fe52015-02-11 22:34:36 +0000148
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200149 // Returns null because the channel is not encrypted by default.
150 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override {
151 return nullptr;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000152 }
153
jbauch555604a2016-04-26 03:13:22 -0700154 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate()
kwibergb4d01c42016-04-06 05:15:06 -0700155 const override {
156 return nullptr;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000157 }
158
159 // Allows key material to be extracted for external encryption.
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200160 bool ExportKeyingMaterial(const std::string& label,
Peter Boström0c4e06b2015-10-07 12:23:21 +0200161 const uint8_t* context,
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200162 size_t context_len,
163 bool use_context,
Peter Boström0c4e06b2015-10-07 12:23:21 +0200164 uint8_t* result,
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200165 size_t result_len) override {
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000166 return false;
167 }
168
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200169 bool SetLocalCertificate(
170 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override {
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000171 return false;
172 }
173
174 // Set DTLS Remote fingerprint. Must be after local identity set.
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200175 bool SetRemoteFingerprint(const std::string& digest_alg,
Peter Boström0c4e06b2015-10-07 12:23:21 +0200176 const uint8_t* digest,
Henrik Boströmf3ecdb92015-09-08 12:11:54 +0200177 size_t digest_len) override {
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000178 return false;
179 }
180
Honghai Zhang049fbb12016-03-07 11:13:07 -0800181 int receiving_timeout() const { return config_.receiving_timeout; }
182 int check_receiving_interval() const { return check_receiving_interval_; }
Peter Thatcher54360512015-07-08 11:08:35 -0700183
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000184 // Helper method used only in unittest.
185 rtc::DiffServCodePoint DefaultDscpValue() const;
186
Peter Thatcher7351f462015-04-02 16:39:16 -0700187 // Public for unit tests.
188 Connection* FindNextPingableConnection();
guoweis36f01372016-03-02 18:02:40 -0800189 void MarkConnectionPinged(Connection* conn);
Peter Thatcher7351f462015-04-02 16:39:16 -0700190
honghaiz77d0d6e2015-10-27 11:34:45 -0700191 // Public for unit tests.
192 const std::vector<Connection*>& connections() const { return connections_; }
193
honghaiz9b669572015-11-04 12:07:44 -0800194 // Public for unit tests.
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000195 PortAllocatorSession* allocator_session() {
Taylor Brandstettera1c30352016-05-13 08:15:11 -0700196 return allocator_sessions_.back().get();
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000197 }
198
honghaiz112fe432015-12-30 13:32:47 -0800199 // Public for unit tests.
200 const std::vector<RemoteCandidate>& remote_candidates() const {
201 return remote_candidates_;
202 }
203
honghaiz9b669572015-11-04 12:07:44 -0800204 private:
205 rtc::Thread* thread() { return worker_thread_; }
206 bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); }
207
honghaiza58ea782015-09-24 08:13:36 -0700208 // A transport channel is weak if the current best connection is either
209 // not receiving or not writable, or if there is no best connection at all.
Honghai Zhang2b342bf2015-09-30 09:51:58 -0700210 bool weak() const;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000211 void UpdateConnectionStates();
212 void RequestSort();
deadbeef14f97f52016-06-22 17:14:15 -0700213
214 // The methods below return a positive value if a is preferable to b,
215 // a negative value if b is preferable, and 0 if they're equally preferable.
216 int CompareConnectionStates(const cricket::Connection* a,
217 const cricket::Connection* b) const;
218 int CompareConnectionCandidates(const cricket::Connection* a,
219 const cricket::Connection* b) const;
220 // Compares first on states, then on candidates, then on RTT.
221 int CompareConnections(const cricket::Connection* a,
222 const cricket::Connection* b) const;
223 bool PresumedWritable(const cricket::Connection* conn) const;
224
225 bool ShouldSwitchSelectedConnection(const cricket::Connection* selected,
226 const cricket::Connection* conn) const;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000227 void SortConnections();
228 void SwitchBestConnectionTo(Connection* conn);
Honghai Zhang381b4212015-12-04 12:24:03 -0800229 void UpdateState();
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000230 void HandleAllTimedOut();
honghaiz9b669572015-11-04 12:07:44 -0800231 void MaybeStopPortAllocatorSessions();
Honghai Zhang381b4212015-12-04 12:24:03 -0800232 TransportChannelState ComputeState() const;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000233
guoweis@webrtc.org8c9ff202014-12-04 07:56:02 +0000234 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
Peter Thatcher04ac81f2015-09-21 11:48:28 -0700235 bool CreateConnections(const Candidate& remote_candidate,
236 PortInterface* origin_port);
237 bool CreateConnection(PortInterface* port,
238 const Candidate& remote_candidate,
239 PortInterface* origin_port);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000240 bool FindConnection(cricket::Connection* connection) const;
241
Peter Boström0c4e06b2015-10-07 12:23:21 +0200242 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000243 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
244 void RememberRemoteCandidate(const Candidate& remote_candidate,
245 PortInterface* origin_port);
honghaiz34b11eb2016-03-16 08:55:44 -0700246 bool IsPingable(Connection* conn, int64_t now);
zhihuang435264a2016-06-21 11:28:38 -0700247 bool IsBestConnectionPingable(int64_t now);
248 int CalculateActiveWritablePingInterval(Connection* conn, int64_t now);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000249 void PingConnection(Connection* conn);
Taylor Brandstettera1c30352016-05-13 08:15:11 -0700250 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000251 void AddConnection(Connection* connection);
252
253 void OnPortReady(PortAllocatorSession *session, PortInterface* port);
254 void OnCandidatesReady(PortAllocatorSession *session,
255 const std::vector<Candidate>& candidates);
256 void OnCandidatesAllocationDone(PortAllocatorSession* session);
257 void OnUnknownAddress(PortInterface* port,
258 const rtc::SocketAddress& addr,
259 ProtocolType proto,
260 IceMessage* stun_msg,
261 const std::string& remote_username,
262 bool port_muxed);
263 void OnPortDestroyed(PortInterface* port);
honghaize3c6c822016-02-17 13:00:28 -0800264 void OnPortNetworkInactive(PortInterface* port);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000265 void OnRoleConflict(PortInterface* port);
266
267 void OnConnectionStateChange(Connection* connection);
268 void OnReadPacket(Connection *connection, const char *data, size_t len,
269 const rtc::PacketTime& packet_time);
Stefan Holmer55674ff2016-01-14 15:49:16 +0100270 void OnSentPacket(const rtc::SentPacket& sent_packet);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000271 void OnReadyToSend(Connection* connection);
272 void OnConnectionDestroyed(Connection *connection);
273
honghaiz5a3acd82015-08-20 15:53:17 -0700274 void OnNominated(Connection* conn);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000275
deadbeefcbecd352015-09-23 11:50:27 -0700276 void OnMessage(rtc::Message* pmsg) override;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000277 void OnSort();
honghaiza58ea782015-09-24 08:13:36 -0700278 void OnCheckAndPing();
Peter Thatcher54360512015-07-08 11:08:35 -0700279
honghaiz5a3acd82015-08-20 15:53:17 -0700280 void PruneConnections();
281 Connection* best_nominated_connection() const;
Honghai Zhang381b4212015-12-04 12:24:03 -0800282 bool IsBackupConnection(Connection* conn) const;
honghaiz5a3acd82015-08-20 15:53:17 -0700283
honghaiz34b11eb2016-03-16 08:55:44 -0700284 Connection* FindConnectionToPing(int64_t now);
285 Connection* FindOldestConnectionNeedingTriggeredCheck(int64_t now);
guoweis36f01372016-03-02 18:02:40 -0800286 // Between |conn1| and |conn2|, this function returns the one which should
287 // be pinged first.
288 Connection* SelectMostPingableConnection(Connection* conn1,
289 Connection* conn2);
290 // Select the connection which is Relay/Relay. If both of them are,
291 // UDP relay protocol takes precedence.
292 Connection* MostLikelyToWork(Connection* conn1, Connection* conn2);
293 // Compare the last_ping_sent time and return the one least recently pinged.
294 Connection* LeastRecentlyPinged(Connection* conn1, Connection* conn2);
295
honghaiza54a0802015-12-16 18:37:23 -0800296 // Returns the latest remote ICE parameters or nullptr if there are no remote
297 // ICE parameters yet.
298 IceParameters* remote_ice() {
299 return remote_ice_parameters_.empty() ? nullptr
300 : &remote_ice_parameters_.back();
301 }
honghaiz112fe432015-12-30 13:32:47 -0800302 // Returns the remote IceParameters and generation that match |ufrag|
303 // if found, and returns nullptr otherwise.
304 const IceParameters* FindRemoteIceFromUfrag(const std::string& ufrag,
305 uint32_t* generation);
honghaiza54a0802015-12-16 18:37:23 -0800306 // Returns the index of the latest remote ICE parameters, or 0 if no remote
307 // ICE parameters have been received.
308 uint32_t remote_ice_generation() {
309 return remote_ice_parameters_.empty()
310 ? 0
311 : static_cast<uint32_t>(remote_ice_parameters_.size() - 1);
312 }
313
deadbeefcbecd352015-09-23 11:50:27 -0700314 PortAllocator* allocator_;
315 rtc::Thread* worker_thread_;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000316 bool incoming_only_;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000317 int error_;
Taylor Brandstettera1c30352016-05-13 08:15:11 -0700318 std::vector<std::unique_ptr<PortAllocatorSession>> allocator_sessions_;
deadbeefdfc42442016-06-21 14:19:48 -0700319 // |ports_| contains ports that are used to form new connections when
320 // new remote candidates are added.
321 std::vector<PortInterface*> ports_;
322 // |removed_ports_| contains ports that have been removed from |ports_| and
323 // are not being used to form new connections, but that aren't yet destroyed.
324 // They may have existing connections, and they still fire signals such as
325 // SignalUnknownAddress.
326 std::vector<PortInterface*> removed_ports_;
guoweis36f01372016-03-02 18:02:40 -0800327
328 // |connections_| is a sorted list with the first one always be the
329 // |best_connection_| when it's not nullptr. The combination of
330 // |pinged_connections_| and |unpinged_connections_| has the same
331 // connections as |connections_|. These 2 sets maintain whether a
332 // connection should be pinged next or not.
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000333 std::vector<Connection *> connections_;
guoweis36f01372016-03-02 18:02:40 -0800334 std::set<Connection*> pinged_connections_;
335 std::set<Connection*> unpinged_connections_;
336
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000337 Connection* best_connection_;
guoweis36f01372016-03-02 18:02:40 -0800338
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000339 // Connection selected by the controlling agent. This should be used only
340 // at controlled side when protocol type is RFC5245.
341 Connection* pending_best_connection_;
342 std::vector<RemoteCandidate> remote_candidates_;
343 bool sort_dirty_; // indicates whether another sort is needed right now
deadbeefcbecd352015-09-23 11:50:27 -0700344 bool had_connection_ = false; // if connections_ has ever been nonempty
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000345 typedef std::map<rtc::Socket::Option, int> OptionMap;
346 OptionMap options_;
347 std::string ice_ufrag_;
348 std::string ice_pwd_;
honghaiza54a0802015-12-16 18:37:23 -0800349 std::vector<IceParameters> remote_ice_parameters_;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000350 IceMode remote_ice_mode_;
351 IceRole ice_role_;
Peter Boström0c4e06b2015-10-07 12:23:21 +0200352 uint64_t tiebreaker_;
deadbeefcbecd352015-09-23 11:50:27 -0700353 IceGatheringState gathering_state_;
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000354
Honghai Zhang049fbb12016-03-07 11:13:07 -0800355 int check_receiving_interval_;
honghaiz34b11eb2016-03-16 08:55:44 -0700356 int64_t last_ping_sent_ms_ = 0;
Honghai Zhang049fbb12016-03-07 11:13:07 -0800357 int weak_ping_interval_ = WEAK_PING_INTERVAL;
Honghai Zhang381b4212015-12-04 12:24:03 -0800358 TransportChannelState state_ = TransportChannelState::STATE_INIT;
guoweis36f01372016-03-02 18:02:40 -0800359 IceConfig config_;
Honghai Zhang52dce732016-03-31 12:37:31 -0700360 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
Peter Thatcher54360512015-07-08 11:08:35 -0700361
henrikg3c089d72015-09-16 05:37:44 -0700362 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +0000363};
364
365} // namespace cricket
366
367#endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_