| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 channel_->RemoveRemoteCandidate(candidate); | 189 channel_->RemoveRemoteCandidate(candidate); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void SetIceConfig(const IceConfig& config) override { | 192 void SetIceConfig(const IceConfig& config) override { |
| 193 channel_->SetIceConfig(config); | 193 channel_->SetIceConfig(config); |
| 194 } | 194 } |
| 195 | 195 |
| 196 // Needed by DtlsTransport. | 196 // Needed by DtlsTransport. |
| 197 TransportChannelImpl* channel() { return channel_; } | 197 TransportChannelImpl* channel() { return channel_; } |
| 198 | 198 |
| 199 // For informational purposes. Tells if the DTLS handshake has finished. |
| 200 // This may be true even if writable() is false, if the remote fingerprint |
| 201 // has not yet been verified. |
| 202 bool IsDtlsConnected(); |
| 203 |
| 199 private: | 204 private: |
| 200 void OnReadableState(TransportChannel* channel); | |
| 201 void OnWritableState(TransportChannel* channel); | 205 void OnWritableState(TransportChannel* channel); |
| 202 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, | 206 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, |
| 203 const rtc::PacketTime& packet_time, int flags); | 207 const rtc::PacketTime& packet_time, int flags); |
| 204 void OnSentPacket(TransportChannel* channel, | 208 void OnSentPacket(TransportChannel* channel, |
| 205 const rtc::SentPacket& sent_packet); | 209 const rtc::SentPacket& sent_packet); |
| 206 void OnReadyToSend(TransportChannel* channel); | 210 void OnReadyToSend(TransportChannel* channel); |
| 207 void OnReceivingState(TransportChannel* channel); | 211 void OnReceivingState(TransportChannel* channel); |
| 208 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); | 212 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); |
| 209 bool SetupDtls(); | 213 bool SetupDtls(); |
| 210 void MaybeStartDtls(); | 214 void MaybeStartDtls(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 240 // transport channel became writable, or before a remote fingerprint was | 244 // transport channel became writable, or before a remote fingerprint was |
| 241 // received. | 245 // received. |
| 242 rtc::Buffer cached_client_hello_; | 246 rtc::Buffer cached_client_hello_; |
| 243 | 247 |
| 244 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 248 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
| 245 }; | 249 }; |
| 246 | 250 |
| 247 } // namespace cricket | 251 } // namespace cricket |
| 248 | 252 |
| 249 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 253 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
| OLD | NEW |