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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 virtual void Connect(); | 198 virtual void Connect(); |
199 | 199 |
200 virtual void OnSignalingReady() { | 200 virtual void OnSignalingReady() { |
201 channel_->OnSignalingReady(); | 201 channel_->OnSignalingReady(); |
202 } | 202 } |
203 virtual void OnCandidate(const Candidate& candidate) { | 203 virtual void OnCandidate(const Candidate& candidate) { |
204 channel_->OnCandidate(candidate); | 204 channel_->OnCandidate(candidate); |
205 } | 205 } |
206 | 206 |
| 207 void SetReceivingTimeout(int receiving_timeout_ms) { |
| 208 channel_->SetReceivingTimeout(receiving_timeout_ms); |
| 209 } |
| 210 |
207 // Needed by DtlsTransport. | 211 // Needed by DtlsTransport. |
208 TransportChannelImpl* channel() { return channel_; } | 212 TransportChannelImpl* channel() { return channel_; } |
209 | 213 |
210 private: | 214 private: |
211 void OnReadableState(TransportChannel* channel); | 215 void OnReadableState(TransportChannel* channel); |
212 void OnWritableState(TransportChannel* channel); | 216 void OnWritableState(TransportChannel* channel); |
213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, | 217 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, |
214 const rtc::PacketTime& packet_time, int flags); | 218 const rtc::PacketTime& packet_time, int flags); |
215 void OnReadyToSend(TransportChannel* channel); | 219 void OnReadyToSend(TransportChannel* channel); |
216 void OnReceivingState(TransportChannel* channel); | 220 void OnReceivingState(TransportChannel* channel); |
(...skipping 20 matching lines...) Expand all Loading... |
237 rtc::SSLProtocolVersion ssl_max_version_; | 241 rtc::SSLProtocolVersion ssl_max_version_; |
238 rtc::Buffer remote_fingerprint_value_; | 242 rtc::Buffer remote_fingerprint_value_; |
239 std::string remote_fingerprint_algorithm_; | 243 std::string remote_fingerprint_algorithm_; |
240 | 244 |
241 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 245 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
242 }; | 246 }; |
243 | 247 |
244 } // namespace cricket | 248 } // namespace cricket |
245 | 249 |
246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 250 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
OLD | NEW |