LeviLamina
Loading...
Searching...
No Matches
DcSctpSocketInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/dcsctp/ResetStreamsStatus.h"
7#include "mc/external/dcsctp/SctpImplementation.h"
8#include "mc/external/dcsctp/SendStatus.h"
9#include "mc/external/dcsctp/SocketState.h"
10#include "mc/external/webrtc/StrongAlias.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace dcsctp { class DcSctpMessage; }
15namespace dcsctp { class HandoverReadinessStatus; }
16namespace dcsctp { class StreamIDTag; }
17namespace dcsctp { class StreamPriorityTag; }
18namespace dcsctp { class TimeoutTag; }
19namespace dcsctp { struct DcSctpOptions; }
20namespace dcsctp { struct DcSctpSocketHandoverState; }
21namespace dcsctp { struct Metrics; }
22namespace dcsctp { struct SendOptions; }
23// clang-format on
24
25namespace dcsctp {
26
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 0
32 virtual ~DcSctpSocketInterface() = default;
33
34 // vIndex: 1
35 virtual void ReceivePacket(::rtc::ArrayView<uchar const>) = 0;
36
37 // vIndex: 2
38 virtual void HandleTimeout(::webrtc::StrongAlias<::dcsctp::TimeoutTag, uint64>) = 0;
39
40 // vIndex: 3
41 virtual void Connect() = 0;
42
43 // vIndex: 4
44 virtual void RestoreFromState(::dcsctp::DcSctpSocketHandoverState const&) = 0;
45
46 // vIndex: 5
47 virtual void Shutdown() = 0;
48
49 // vIndex: 6
50 virtual void Close() = 0;
51
52 // vIndex: 7
53 virtual ::dcsctp::SocketState state() const = 0;
54
55 // vIndex: 8
56 virtual ::dcsctp::DcSctpOptions const& options() const = 0;
57
58 // vIndex: 9
59 virtual void SetMaxMessageSize(uint64) = 0;
60
61 // vIndex: 10
62 virtual void SetStreamPriority(
65 ) = 0;
66
67 // vIndex: 11
68 virtual ::webrtc::StrongAlias<::dcsctp::StreamPriorityTag, ushort>
70
71 // vIndex: 12
72 virtual ::dcsctp::SendStatus Send(::dcsctp::DcSctpMessage, ::dcsctp::SendOptions const&) = 0;
73
74 // vIndex: 13
75 virtual ::std::vector<::dcsctp::SendStatus>
77
78 // vIndex: 14
79 virtual ::dcsctp::ResetStreamsStatus
81
82 // vIndex: 15
83 virtual uint64 buffered_amount(::webrtc::StrongAlias<::dcsctp::StreamIDTag, ushort>) const = 0;
84
85 // vIndex: 16
86 virtual uint64 buffered_amount_low_threshold(::webrtc::StrongAlias<::dcsctp::StreamIDTag, ushort>) const = 0;
87
88 // vIndex: 17
89 virtual void SetBufferedAmountLowThreshold(::webrtc::StrongAlias<::dcsctp::StreamIDTag, ushort>, uint64) = 0;
90
91 // vIndex: 18
92 virtual ::std::optional<::dcsctp::Metrics> GetMetrics() const = 0;
93
94 // vIndex: 19
95 virtual ::dcsctp::HandoverReadinessStatus GetHandoverReadiness() const = 0;
96
97 // vIndex: 20
98 virtual ::std::optional<::dcsctp::DcSctpSocketHandoverState> GetHandoverStateAndClose() = 0;
99
100 // vIndex: 21
101 virtual ::dcsctp::SctpImplementation peer_implementation() const;
102 // NOLINTEND
103
104public:
105 // virtual function thunks
106 // NOLINTBEGIN
107
108 // NOLINTEND
109};
110
111} // namespace dcsctp
Definition DcSctpMessage.h:7
Definition DcSctpSocketInterface.h:27
Definition _HeaderOutputPredefine.h:260
Definition StrongAlias.h:8
Definition DcSctpSocketHandoverState.h:7
Definition SendOptions.h:7