• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2018 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include "api/data_channel_interface.h"
12 
13 namespace webrtc {
14 
ordered() const15 bool DataChannelInterface::ordered() const {
16   return false;
17 }
18 
maxRetransmitTime() const19 uint16_t DataChannelInterface::maxRetransmitTime() const {
20   return 0;
21 }
22 
maxRetransmits() const23 uint16_t DataChannelInterface::maxRetransmits() const {
24   return 0;
25 }
26 
maxRetransmitsOpt() const27 absl::optional<int> DataChannelInterface::maxRetransmitsOpt() const {
28   return absl::nullopt;
29 }
30 
maxPacketLifeTime() const31 absl::optional<int> DataChannelInterface::maxPacketLifeTime() const {
32   return absl::nullopt;
33 }
34 
protocol() const35 std::string DataChannelInterface::protocol() const {
36   return std::string();
37 }
38 
negotiated() const39 bool DataChannelInterface::negotiated() const {
40   return false;
41 }
42 
MaxSendQueueSize()43 uint64_t DataChannelInterface::MaxSendQueueSize() {
44   return 16 * 1024 * 1024;  // 16 MiB
45 }
46 
47 }  // namespace webrtc
48