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() const15bool DataChannelInterface::ordered() const { 16 return false; 17 } 18 maxRetransmitTime() const19uint16_t DataChannelInterface::maxRetransmitTime() const { 20 return 0; 21 } 22 maxRetransmits() const23uint16_t DataChannelInterface::maxRetransmits() const { 24 return 0; 25 } 26 maxRetransmitsOpt() const27absl::optional<int> DataChannelInterface::maxRetransmitsOpt() const { 28 return absl::nullopt; 29 } 30 maxPacketLifeTime() const31absl::optional<int> DataChannelInterface::maxPacketLifeTime() const { 32 return absl::nullopt; 33 } 34 protocol() const35std::string DataChannelInterface::protocol() const { 36 return std::string(); 37 } 38 negotiated() const39bool DataChannelInterface::negotiated() const { 40 return false; 41 } 42 MaxSendQueueSize()43uint64_t DataChannelInterface::MaxSendQueueSize() { 44 return 16 * 1024 * 1024; // 16 MiB 45 } 46 47 } // namespace webrtc 48