blob: bddb9d1b0a411931e9cda363bc6b81c94c8110e4 [file] [log] [blame]
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +02001/*
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
Steve Anton10542f22019-01-11 09:11:00 -080011#include "api/data_channel_interface.h"
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020012
13namespace webrtc {
14
15bool DataChannelInterface::ordered() const {
16 return false;
17}
18
19uint16_t DataChannelInterface::maxRetransmitTime() const {
20 return 0;
21}
22
23uint16_t DataChannelInterface::maxRetransmits() const {
24 return 0;
25}
26
Harald Alvestrandf3736ed2019-04-08 13:09:30 +020027absl::optional<int> DataChannelInterface::maxRetransmitsOpt() const {
28 return absl::nullopt;
29}
30
31absl::optional<int> DataChannelInterface::maxPacketLifeTime() const {
32 return absl::nullopt;
33}
34
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020035std::string DataChannelInterface::protocol() const {
36 return std::string();
37}
38
39bool DataChannelInterface::negotiated() const {
40 return false;
41}
42
Florent Castellia563a2a2021-10-18 11:46:21 +020043uint64_t DataChannelInterface::MaxSendQueueSize() {
44 return 16 * 1024 * 1024; // 16 MiB
45}
46
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020047} // namespace webrtc