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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 // is ready to send with this candidate pair. | 160 // is ready to send with this candidate pair. |
161 sigslot::signal4<TransportChannel*, CandidatePairInterface*, int, bool> | 161 sigslot::signal4<TransportChannel*, CandidatePairInterface*, int, bool> |
162 SignalSelectedCandidatePairChanged; | 162 SignalSelectedCandidatePairChanged; |
163 | 163 |
164 // Invoked when the channel is being destroyed. | 164 // Invoked when the channel is being destroyed. |
165 sigslot::signal1<TransportChannel*> SignalDestroyed; | 165 sigslot::signal1<TransportChannel*> SignalDestroyed; |
166 | 166 |
167 // Debugging description of this transport channel. | 167 // Debugging description of this transport channel. |
168 std::string ToString() const; | 168 std::string ToString() const; |
169 | 169 |
170 // get selected candidate pair | |
171 // virtual CandidatePairInterface* selected_candidate_pair(); | |
honghaiz3
2016/10/31 17:42:09
You don't need this unless you want to choose the
michaelt
2016/11/01 08:31:37
Done.
| |
172 | |
170 protected: | 173 protected: |
171 // Sets the writable state, signaling if necessary. | 174 // Sets the writable state, signaling if necessary. |
172 void set_writable(bool writable); | 175 void set_writable(bool writable); |
173 | 176 |
174 // Sets the receiving state, signaling if necessary. | 177 // Sets the receiving state, signaling if necessary. |
175 void set_receiving(bool receiving); | 178 void set_receiving(bool receiving); |
176 | 179 |
177 // Sets the DTLS state, signaling if necessary. | 180 // Sets the DTLS state, signaling if necessary. |
178 void set_dtls_state(DtlsTransportState state); | 181 void set_dtls_state(DtlsTransportState state); |
179 | 182 |
180 private: | 183 private: |
181 // Used mostly for debugging. | 184 // Used mostly for debugging. |
182 std::string transport_name_; | 185 std::string transport_name_; |
183 int component_; | 186 int component_; |
184 bool writable_; | 187 bool writable_; |
185 bool receiving_; | 188 bool receiving_; |
186 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 189 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
187 | 190 |
188 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 191 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
189 }; | 192 }; |
190 | 193 |
191 } // namespace cricket | 194 } // namespace cricket |
192 | 195 |
193 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 196 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |