OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |