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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 // Needed by DtlsTransport. | 207 // Needed by DtlsTransport. |
208 TransportChannelImpl* channel() { return channel_; } | 208 TransportChannelImpl* channel() { return channel_; } |
209 | 209 |
210 private: | 210 private: |
211 void OnReadableState(TransportChannel* channel); | 211 void OnReadableState(TransportChannel* channel); |
212 void OnWritableState(TransportChannel* channel); | 212 void OnWritableState(TransportChannel* channel); |
213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, | 213 void OnReadPacket(TransportChannel* channel, const char* data, size_t size, |
214 const rtc::PacketTime& packet_time, int flags); | 214 const rtc::PacketTime& packet_time, int flags); |
215 void OnReadyToSend(TransportChannel* channel); | 215 void OnReadyToSend(TransportChannel* channel); |
| 216 void OnReceivingState(TransportChannel* channel); |
216 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); | 217 void OnDtlsEvent(rtc::StreamInterface* stream_, int sig, int err); |
217 bool SetupDtls(); | 218 bool SetupDtls(); |
218 bool MaybeStartDtls(); | 219 bool MaybeStartDtls(); |
219 bool HandleDtlsPacket(const char* data, size_t size); | 220 bool HandleDtlsPacket(const char* data, size_t size); |
220 void OnRequestSignaling(TransportChannelImpl* channel); | 221 void OnRequestSignaling(TransportChannelImpl* channel); |
221 void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c); | 222 void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c); |
222 void OnCandidatesAllocationDone(TransportChannelImpl* channel); | 223 void OnCandidatesAllocationDone(TransportChannelImpl* channel); |
223 void OnRoleConflict(TransportChannelImpl* channel); | 224 void OnRoleConflict(TransportChannelImpl* channel); |
224 void OnRouteChange(TransportChannel* channel, const Candidate& candidate); | 225 void OnRouteChange(TransportChannel* channel, const Candidate& candidate); |
225 void OnConnectionRemoved(TransportChannelImpl* channel); | 226 void OnConnectionRemoved(TransportChannelImpl* channel); |
(...skipping 10 matching lines...) Expand all Loading... |
236 rtc::SSLProtocolVersion ssl_max_version_; | 237 rtc::SSLProtocolVersion ssl_max_version_; |
237 rtc::Buffer remote_fingerprint_value_; | 238 rtc::Buffer remote_fingerprint_value_; |
238 std::string remote_fingerprint_algorithm_; | 239 std::string remote_fingerprint_algorithm_; |
239 | 240 |
240 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 241 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
241 }; | 242 }; |
242 | 243 |
243 } // namespace cricket | 244 } // namespace cricket |
244 | 245 |
245 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 246 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
OLD | NEW |