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 |
11 #include <memory> | 11 #include <memory> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "webrtc/p2p/base/dtlstransportchannel.h" | 14 #include "webrtc/p2p/base/dtlstransportchannel.h" |
15 | 15 |
16 #include "webrtc/p2p/base/common.h" | 16 #include "webrtc/p2p/base/common.h" |
17 #include "webrtc/p2p/base/packettransportinternal.h" | 17 #include "webrtc/p2p/base/packettransportinternal.h" |
18 #include "webrtc/base/buffer.h" | 18 #include "webrtc/rtc_base/buffer.h" |
19 #include "webrtc/base/checks.h" | 19 #include "webrtc/rtc_base/checks.h" |
20 #include "webrtc/base/dscp.h" | 20 #include "webrtc/rtc_base/dscp.h" |
21 #include "webrtc/base/messagequeue.h" | 21 #include "webrtc/rtc_base/messagequeue.h" |
22 #include "webrtc/base/sslstreamadapter.h" | 22 #include "webrtc/rtc_base/sslstreamadapter.h" |
23 #include "webrtc/base/stream.h" | 23 #include "webrtc/rtc_base/stream.h" |
24 #include "webrtc/base/thread.h" | 24 #include "webrtc/rtc_base/thread.h" |
25 | 25 |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
28 // We don't pull the RTP constants from rtputils.h, to avoid a layer violation. | 28 // We don't pull the RTP constants from rtputils.h, to avoid a layer violation. |
29 static const size_t kDtlsRecordHeaderLen = 13; | 29 static const size_t kDtlsRecordHeaderLen = 13; |
30 static const size_t kMaxDtlsPacketLen = 2048; | 30 static const size_t kMaxDtlsPacketLen = 2048; |
31 static const size_t kMinRtpPacketLen = 12; | 31 static const size_t kMinRtpPacketLen = 12; |
32 | 32 |
33 // Maximum number of pending packets in the queue. Packets are read immediately | 33 // Maximum number of pending packets in the queue. Packets are read immediately |
34 // after they have been written, so a capacity of "1" is sufficient. | 34 // after they have been written, so a capacity of "1" is sufficient. |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 | 673 |
674 dtls_->SetInitialRetransmissionTimeout(initial_timeout); | 674 dtls_->SetInitialRetransmissionTimeout(initial_timeout); |
675 } else { | 675 } else { |
676 LOG_J(LS_INFO, this) | 676 LOG_J(LS_INFO, this) |
677 << "no RTT estimate - using default DTLS handshake timeout"; | 677 << "no RTT estimate - using default DTLS handshake timeout"; |
678 } | 678 } |
679 } | 679 } |
680 | 680 |
681 | 681 |
682 } // namespace cricket | 682 } // namespace cricket |
OLD | NEW |