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

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

Issue 2670113002: Pick the DTLS handshake timeout based on the ICE RTT estimate (Closed)
Patch Set: Rename InitialHandshakeRetransmissionTimeout -> InitialRetransmissionTimeout. Created 3 years, 10 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/base/sslstreamadapter.h ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int flags); 200 int flags);
201 void OnSentPacket(rtc::PacketTransportInterface* transport, 201 void OnSentPacket(rtc::PacketTransportInterface* transport,
202 const rtc::SentPacket& sent_packet); 202 const rtc::SentPacket& sent_packet);
203 void OnReadyToSend(rtc::PacketTransportInterface* transport); 203 void OnReadyToSend(rtc::PacketTransportInterface* transport);
204 void OnReceivingState(rtc::PacketTransportInterface* transport); 204 void OnReceivingState(rtc::PacketTransportInterface* transport);
205 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); 205 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err);
206 bool SetupDtls(); 206 bool SetupDtls();
207 void MaybeStartDtls(); 207 void MaybeStartDtls();
208 bool HandleDtlsPacket(const char* data, size_t size); 208 bool HandleDtlsPacket(const char* data, size_t size);
209 void OnDtlsHandshakeError(rtc::SSLHandshakeError error); 209 void OnDtlsHandshakeError(rtc::SSLHandshakeError error);
210 void ConfigureHandshakeTimeout();
210 211
211 void set_receiving(bool receiving); 212 void set_receiving(bool receiving);
212 void set_writable(bool writable); 213 void set_writable(bool writable);
213 // Sets the DTLS state, signaling if necessary. 214 // Sets the DTLS state, signaling if necessary.
214 void set_dtls_state(DtlsTransportState state); 215 void set_dtls_state(DtlsTransportState state);
215 216
216 std::string transport_name_; 217 std::string transport_name_;
217 int component_; 218 int component_;
218 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 219 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
219 rtc::Thread* network_thread_; // Everything should occur on this thread. 220 rtc::Thread* network_thread_; // Everything should occur on this thread.
(...skipping 17 matching lines...) Expand all
237 238
238 bool receiving_ = false; 239 bool receiving_ = false;
239 bool writable_ = false; 240 bool writable_ = false;
240 241
241 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransport); 242 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransport);
242 }; 243 };
243 244
244 } // namespace cricket 245 } // namespace cricket
245 246
246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 247 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter.h ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698