| 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(); | |
| 211 | 210 |
| 212 void set_receiving(bool receiving); | 211 void set_receiving(bool receiving); |
| 213 void set_writable(bool writable); | 212 void set_writable(bool writable); |
| 214 // Sets the DTLS state, signaling if necessary. | 213 // Sets the DTLS state, signaling if necessary. |
| 215 void set_dtls_state(DtlsTransportState state); | 214 void set_dtls_state(DtlsTransportState state); |
| 216 | 215 |
| 217 std::string transport_name_; | 216 std::string transport_name_; |
| 218 int component_; | 217 int component_; |
| 219 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 218 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
| 220 rtc::Thread* network_thread_; // Everything should occur on this thread. | 219 rtc::Thread* network_thread_; // Everything should occur on this thread. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 238 | 237 |
| 239 bool receiving_ = false; | 238 bool receiving_ = false; |
| 240 bool writable_ = false; | 239 bool writable_ = false; |
| 241 | 240 |
| 242 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransport); | 241 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransport); |
| 243 }; | 242 }; |
| 244 | 243 |
| 245 } // namespace cricket | 244 } // namespace cricket |
| 246 | 245 |
| 247 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
| OLD | NEW |