OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 sigslot::signal2<TransportChannel*, const rtc::SentPacket&> SignalSentPacket; | 148 sigslot::signal2<TransportChannel*, const rtc::SentPacket&> SignalSentPacket; |
149 | 149 |
150 // Deprecated by SignalSelectedCandidatePairChanged | 150 // Deprecated by SignalSelectedCandidatePairChanged |
151 // This signal occurs when there is a change in the way that packets are | 151 // This signal occurs when there is a change in the way that packets are |
152 // being routed, i.e. to a different remote location. The candidate | 152 // being routed, i.e. to a different remote location. The candidate |
153 // indicates where and how we are currently sending media. | 153 // indicates where and how we are currently sending media. |
154 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; | 154 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; |
155 | 155 |
156 // Signalled when the current selected candidate pair has changed. | 156 // Signalled when the current selected candidate pair has changed. |
157 // The first parameter is the transport channel that signals the event. | 157 // The first parameter is the transport channel that signals the event. |
158 // The second parameter is the new selected candidate pair. | 158 // The second parameter is the new selected candidate pair. The third |
159 sigslot::signal2<TransportChannel*, CandidatePairInterface*> | 159 // parameter is the last packet id sent on the previous candidate pair. |
| 160 sigslot::signal3<TransportChannel*, CandidatePairInterface*, int> |
160 SignalSelectedCandidatePairChanged; | 161 SignalSelectedCandidatePairChanged; |
161 | 162 |
162 // Invoked when the channel is being destroyed. | 163 // Invoked when the channel is being destroyed. |
163 sigslot::signal1<TransportChannel*> SignalDestroyed; | 164 sigslot::signal1<TransportChannel*> SignalDestroyed; |
164 | 165 |
165 // Debugging description of this transport channel. | 166 // Debugging description of this transport channel. |
166 std::string ToString() const; | 167 std::string ToString() const; |
167 | 168 |
168 protected: | 169 protected: |
169 // Sets the writable state, signaling if necessary. | 170 // Sets the writable state, signaling if necessary. |
(...skipping 12 matching lines...) Expand all Loading... |
182 bool writable_; | 183 bool writable_; |
183 bool receiving_; | 184 bool receiving_; |
184 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 185 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
185 | 186 |
186 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 187 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
187 }; | 188 }; |
188 | 189 |
189 } // namespace cricket | 190 } // namespace cricket |
190 | 191 |
191 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 192 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |