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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( | 91 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( |
92 Transport* transport, | 92 Transport* transport, |
93 TransportChannelImpl* channel) | 93 TransportChannelImpl* channel) |
94 : TransportChannelImpl(channel->transport_name(), channel->component()), | 94 : TransportChannelImpl(channel->transport_name(), channel->component()), |
95 transport_(transport), | 95 transport_(transport), |
96 worker_thread_(rtc::Thread::Current()), | 96 worker_thread_(rtc::Thread::Current()), |
97 channel_(channel), | 97 channel_(channel), |
98 downward_(NULL), | 98 downward_(NULL), |
99 ssl_role_(rtc::SSL_CLIENT), | 99 ssl_role_(rtc::SSL_CLIENT), |
100 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_10) { | 100 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12) { |
101 channel_->SignalWritableState.connect(this, | 101 channel_->SignalWritableState.connect(this, |
102 &DtlsTransportChannelWrapper::OnWritableState); | 102 &DtlsTransportChannelWrapper::OnWritableState); |
103 channel_->SignalReadPacket.connect(this, | 103 channel_->SignalReadPacket.connect(this, |
104 &DtlsTransportChannelWrapper::OnReadPacket); | 104 &DtlsTransportChannelWrapper::OnReadPacket); |
105 channel_->SignalSentPacket.connect( | 105 channel_->SignalSentPacket.connect( |
106 this, &DtlsTransportChannelWrapper::OnSentPacket); | 106 this, &DtlsTransportChannelWrapper::OnSentPacket); |
107 channel_->SignalReadyToSend.connect(this, | 107 channel_->SignalReadyToSend.connect(this, |
108 &DtlsTransportChannelWrapper::OnReadyToSend); | 108 &DtlsTransportChannelWrapper::OnReadyToSend); |
109 channel_->SignalGatheringState.connect( | 109 channel_->SignalGatheringState.connect( |
110 this, &DtlsTransportChannelWrapper::OnGatheringState); | 110 this, &DtlsTransportChannelWrapper::OnGatheringState); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 630 |
631 void DtlsTransportChannelWrapper::Reconnect() { | 631 void DtlsTransportChannelWrapper::Reconnect() { |
632 set_dtls_state(DTLS_TRANSPORT_NEW); | 632 set_dtls_state(DTLS_TRANSPORT_NEW); |
633 set_writable(false); | 633 set_writable(false); |
634 if (channel_->writable()) { | 634 if (channel_->writable()) { |
635 OnWritableState(channel_); | 635 OnWritableState(channel_); |
636 } | 636 } |
637 } | 637 } |
638 | 638 |
639 } // namespace cricket | 639 } // namespace cricket |
OLD | NEW |