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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_10) { |
101 channel_->SignalReadableState.connect(this, | 101 channel_->SignalReadableState.connect(this, |
102 &DtlsTransportChannelWrapper::OnReadableState); | 102 &DtlsTransportChannelWrapper::OnReadableState); |
103 channel_->SignalWritableState.connect(this, | 103 channel_->SignalWritableState.connect(this, |
104 &DtlsTransportChannelWrapper::OnWritableState); | 104 &DtlsTransportChannelWrapper::OnWritableState); |
105 channel_->SignalReadPacket.connect(this, | 105 channel_->SignalReadPacket.connect(this, |
106 &DtlsTransportChannelWrapper::OnReadPacket); | 106 &DtlsTransportChannelWrapper::OnReadPacket); |
107 channel_->SignalReadyToSend.connect(this, | 107 channel_->SignalReadyToSend.connect(this, |
108 &DtlsTransportChannelWrapper::OnReadyToSend); | 108 &DtlsTransportChannelWrapper::OnReadyToSend); |
109 channel_->SignalRequestSignaling.connect(this, | 109 channel_->SignalCandidatesAllocationStarted.connect(this, |
110 &DtlsTransportChannelWrapper::OnRequestSignaling); | 110 &DtlsTransportChannelWrapper::OnCandidatesAllocationStarted); |
111 channel_->SignalCandidateReady.connect(this, | 111 channel_->SignalCandidateReady.connect(this, |
112 &DtlsTransportChannelWrapper::OnCandidateReady); | 112 &DtlsTransportChannelWrapper::OnCandidateReady); |
113 channel_->SignalCandidatesAllocationDone.connect(this, | 113 channel_->SignalCandidatesAllocationDone.connect(this, |
114 &DtlsTransportChannelWrapper::OnCandidatesAllocationDone); | 114 &DtlsTransportChannelWrapper::OnCandidatesAllocationDone); |
115 channel_->SignalRoleConflict.connect(this, | 115 channel_->SignalRoleConflict.connect(this, |
116 &DtlsTransportChannelWrapper::OnRoleConflict); | 116 &DtlsTransportChannelWrapper::OnRoleConflict); |
117 channel_->SignalRouteChange.connect(this, | 117 channel_->SignalRouteChange.connect(this, |
118 &DtlsTransportChannelWrapper::OnRouteChange); | 118 &DtlsTransportChannelWrapper::OnRouteChange); |
119 channel_->SignalConnectionRemoved.connect(this, | 119 channel_->SignalConnectionRemoved.connect(this, |
120 &DtlsTransportChannelWrapper::OnConnectionRemoved); | 120 &DtlsTransportChannelWrapper::OnConnectionRemoved); |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 | 608 |
609 tmp_data += record_len + kDtlsRecordHeaderLen; | 609 tmp_data += record_len + kDtlsRecordHeaderLen; |
610 tmp_size -= record_len + kDtlsRecordHeaderLen; | 610 tmp_size -= record_len + kDtlsRecordHeaderLen; |
611 } | 611 } |
612 | 612 |
613 // Looks good. Pass to the SIC which ends up being passed to | 613 // Looks good. Pass to the SIC which ends up being passed to |
614 // the DTLS stack. | 614 // the DTLS stack. |
615 return downward_->OnPacketReceived(data, size); | 615 return downward_->OnPacketReceived(data, size); |
616 } | 616 } |
617 | 617 |
618 void DtlsTransportChannelWrapper::OnRequestSignaling( | 618 void DtlsTransportChannelWrapper::OnCandidatesAllocationStarted( |
619 TransportChannelImpl* channel) { | 619 TransportChannelImpl* channel) { |
620 ASSERT(channel == channel_); | 620 ASSERT(channel == channel_); |
621 SignalRequestSignaling(this); | 621 SignalCandidatesAllocationStarted(this); |
622 } | 622 } |
623 | 623 |
624 void DtlsTransportChannelWrapper::OnCandidateReady( | 624 void DtlsTransportChannelWrapper::OnCandidateReady( |
625 TransportChannelImpl* channel, const Candidate& c) { | 625 TransportChannelImpl* channel, const Candidate& c) { |
626 ASSERT(channel == channel_); | 626 ASSERT(channel == channel_); |
627 SignalCandidateReady(this, c); | 627 SignalCandidateReady(this, c); |
628 } | 628 } |
629 | 629 |
630 void DtlsTransportChannelWrapper::OnCandidatesAllocationDone( | 630 void DtlsTransportChannelWrapper::OnCandidatesAllocationDone( |
631 TransportChannelImpl* channel) { | 631 TransportChannelImpl* channel) { |
(...skipping 13 matching lines...) Expand all Loading... |
645 SignalRouteChange(this, candidate); | 645 SignalRouteChange(this, candidate); |
646 } | 646 } |
647 | 647 |
648 void DtlsTransportChannelWrapper::OnConnectionRemoved( | 648 void DtlsTransportChannelWrapper::OnConnectionRemoved( |
649 TransportChannelImpl* channel) { | 649 TransportChannelImpl* channel) { |
650 ASSERT(channel == channel_); | 650 ASSERT(channel == channel_); |
651 SignalConnectionRemoved(this); | 651 SignalConnectionRemoved(this); |
652 } | 652 } |
653 | 653 |
654 } // namespace cricket | 654 } // namespace cricket |
OLD | NEW |