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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 channel_->SignalReadPacket.connect(this, | 106 channel_->SignalReadPacket.connect(this, |
107 &DtlsTransportChannelWrapper::OnReadPacket); | 107 &DtlsTransportChannelWrapper::OnReadPacket); |
108 channel_->SignalSentPacket.connect( | 108 channel_->SignalSentPacket.connect( |
109 this, &DtlsTransportChannelWrapper::OnSentPacket); | 109 this, &DtlsTransportChannelWrapper::OnSentPacket); |
110 channel_->SignalReadyToSend.connect(this, | 110 channel_->SignalReadyToSend.connect(this, |
111 &DtlsTransportChannelWrapper::OnReadyToSend); | 111 &DtlsTransportChannelWrapper::OnReadyToSend); |
112 channel_->SignalGatheringState.connect( | 112 channel_->SignalGatheringState.connect( |
113 this, &DtlsTransportChannelWrapper::OnGatheringState); | 113 this, &DtlsTransportChannelWrapper::OnGatheringState); |
114 channel_->SignalCandidateGathered.connect( | 114 channel_->SignalCandidateGathered.connect( |
115 this, &DtlsTransportChannelWrapper::OnCandidateGathered); | 115 this, &DtlsTransportChannelWrapper::OnCandidateGathered); |
116 channel_->SignalCandidatesRemoved.connect( | |
117 this, &DtlsTransportChannelWrapper::OnCandidatesRemoved); | |
118 channel_->SignalRoleConflict.connect(this, | 116 channel_->SignalRoleConflict.connect(this, |
119 &DtlsTransportChannelWrapper::OnRoleConflict); | 117 &DtlsTransportChannelWrapper::OnRoleConflict); |
120 channel_->SignalRouteChange.connect(this, | 118 channel_->SignalRouteChange.connect(this, |
121 &DtlsTransportChannelWrapper::OnRouteChange); | 119 &DtlsTransportChannelWrapper::OnRouteChange); |
122 channel_->SignalConnectionRemoved.connect(this, | 120 channel_->SignalConnectionRemoved.connect(this, |
123 &DtlsTransportChannelWrapper::OnConnectionRemoved); | 121 &DtlsTransportChannelWrapper::OnConnectionRemoved); |
124 channel_->SignalReceivingState.connect(this, | 122 channel_->SignalReceivingState.connect(this, |
125 &DtlsTransportChannelWrapper::OnReceivingState); | 123 &DtlsTransportChannelWrapper::OnReceivingState); |
126 } | 124 } |
127 | 125 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 SignalGatheringState(this); | 606 SignalGatheringState(this); |
609 } | 607 } |
610 | 608 |
611 void DtlsTransportChannelWrapper::OnCandidateGathered( | 609 void DtlsTransportChannelWrapper::OnCandidateGathered( |
612 TransportChannelImpl* channel, | 610 TransportChannelImpl* channel, |
613 const Candidate& c) { | 611 const Candidate& c) { |
614 ASSERT(channel == channel_); | 612 ASSERT(channel == channel_); |
615 SignalCandidateGathered(this, c); | 613 SignalCandidateGathered(this, c); |
616 } | 614 } |
617 | 615 |
618 void DtlsTransportChannelWrapper::OnCandidatesRemoved( | |
619 TransportChannelImpl* channel, | |
620 const Candidates& candidates) { | |
621 ASSERT(channel == channel_); | |
622 SignalCandidatesRemoved(this, candidates); | |
623 } | |
624 | |
625 void DtlsTransportChannelWrapper::OnRoleConflict( | 616 void DtlsTransportChannelWrapper::OnRoleConflict( |
626 TransportChannelImpl* channel) { | 617 TransportChannelImpl* channel) { |
627 ASSERT(channel == channel_); | 618 ASSERT(channel == channel_); |
628 SignalRoleConflict(this); | 619 SignalRoleConflict(this); |
629 } | 620 } |
630 | 621 |
631 void DtlsTransportChannelWrapper::OnRouteChange( | 622 void DtlsTransportChannelWrapper::OnRouteChange( |
632 TransportChannel* channel, const Candidate& candidate) { | 623 TransportChannel* channel, const Candidate& candidate) { |
633 ASSERT(channel == channel_); | 624 ASSERT(channel == channel_); |
634 SignalRouteChange(this, candidate); | 625 SignalRouteChange(this, candidate); |
635 } | 626 } |
636 | 627 |
637 void DtlsTransportChannelWrapper::OnConnectionRemoved( | 628 void DtlsTransportChannelWrapper::OnConnectionRemoved( |
638 TransportChannelImpl* channel) { | 629 TransportChannelImpl* channel) { |
639 ASSERT(channel == channel_); | 630 ASSERT(channel == channel_); |
640 SignalConnectionRemoved(this); | 631 SignalConnectionRemoved(this); |
641 } | 632 } |
642 | 633 |
643 void DtlsTransportChannelWrapper::Reconnect() { | 634 void DtlsTransportChannelWrapper::Reconnect() { |
644 set_dtls_state(DTLS_TRANSPORT_NEW); | 635 set_dtls_state(DTLS_TRANSPORT_NEW); |
645 set_writable(false); | 636 set_writable(false); |
646 if (channel_->writable()) { | 637 if (channel_->writable()) { |
647 OnWritableState(channel_); | 638 OnWritableState(channel_); |
648 } | 639 } |
649 } | 640 } |
650 | 641 |
651 } // namespace cricket | 642 } // namespace cricket |
OLD | NEW |