Thanks to visit codestin.com
Credit goes to webrtc.googlesource.com

blob: 429b7b9e78d720e4f10788842a1aae772443a1d8 [file] [log] [blame]
Harald Alvestrandc85328f2019-02-28 06:51:001/*
2 * Copyright 2019 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
Harald Alvestrandc85328f2019-02-28 06:51:0011#include "api/sctp_transport_interface.h"
12
Jeremy Leconte36f153e2024-09-12 08:53:3213#include <optional>
Jonas Olssona4d87372019-07-05 17:08:3314#include <utility>
15
Dor Hen28ce65c2024-09-04 11:55:2216#include "api/dtls_transport_interface.h"
17#include "api/scoped_refptr.h"
18
Harald Alvestrandc85328f2019-02-28 06:51:0019namespace webrtc {
20
21SctpTransportInformation::SctpTransportInformation(SctpTransportState state)
22 : state_(state) {}
23
24SctpTransportInformation::SctpTransportInformation(
25 SctpTransportState state,
Evan Shrubsoleee5ab342025-04-15 14:49:4626 scoped_refptr<DtlsTransportInterface> dtls_transport,
Florent Castelli8037fc62024-08-29 13:00:4027 std::optional<double> max_message_size,
28 std::optional<int> max_channels)
Harald Alvestrandc85328f2019-02-28 06:51:0029 : state_(state),
30 dtls_transport_(std::move(dtls_transport)),
31 max_message_size_(max_message_size),
32 max_channels_(max_channels) {}
33
34SctpTransportInformation::~SctpTransportInformation() {}
35
36} // namespace webrtc