LeviLamina
Loading...
Searching...
No Matches
DataChannelInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/absl/AnyInvocable.h"
7#include "mc/external/webrtc/Priority.h"
8#include "mc/external/webrtc/RefCountInterface.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace webrtc { class DataChannelObserver; }
13namespace webrtc { class RTCError; }
14namespace webrtc { struct DataBuffer; }
15// clang-format on
16
17namespace webrtc {
18
20public:
21 // DataChannelInterface inner types define
22 enum class DataState : int {
23 KConnecting = 0,
24 KOpen = 1,
25 KClosing = 2,
26 KClosed = 3,
27 };
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 3
33 virtual void RegisterObserver(::webrtc::DataChannelObserver*) = 0;
34
35 // vIndex: 4
36 virtual void UnregisterObserver() = 0;
37
38 // vIndex: 5
39 virtual ::std::string label() const = 0;
40
41 // vIndex: 6
42 virtual bool reliable() const = 0;
43
44 // vIndex: 7
45 virtual bool ordered() const;
46
47 // vIndex: 8
48 virtual ushort maxRetransmitTime() const;
49
50 // vIndex: 9
51 virtual ushort maxRetransmits() const;
52
53 // vIndex: 10
54 virtual ::std::optional<int> maxRetransmitsOpt() const;
55
56 // vIndex: 11
57 virtual ::std::optional<int> maxPacketLifeTime() const;
58
59 // vIndex: 12
60 virtual ::std::string protocol() const;
61
62 // vIndex: 13
63 virtual bool negotiated() const;
64
65 // vIndex: 14
66 virtual int id() const = 0;
67
68 // vIndex: 15
69 virtual ::webrtc::Priority priority() const;
70
71 // vIndex: 16
72 virtual ::webrtc::DataChannelInterface::DataState state() const = 0;
73
74 // vIndex: 17
75 virtual ::webrtc::RTCError error() const;
76
77 // vIndex: 18
78 virtual uint messages_sent() const = 0;
79
80 // vIndex: 19
81 virtual uint64 bytes_sent() const = 0;
82
83 // vIndex: 20
84 virtual uint64 bytes_send_buffer() const = 0;
85
86 // vIndex: 21
87 virtual uint messages_received() const = 0;
88
89 // vIndex: 22
90 virtual uint64 bytes_received() const = 0;
91
92 // vIndex: 23
93 virtual uint64 buffered_amount() const = 0;
94
95 // vIndex: 24
96 virtual void Close() = 0;
97
98 // vIndex: 25
99 virtual bool Send(::webrtc::DataBuffer const&);
100
101 // vIndex: 26
102 virtual void SendAsync(::webrtc::DataBuffer, ::absl::AnyInvocable<void(::webrtc::RTCError) &&>);
103
104 // vIndex: 2
105 virtual ~DataChannelInterface() /*override*/ = default;
106 // NOLINTEND
107
108public:
109 // static functions
110 // NOLINTBEGIN
111 MCAPI static uint64 MaxSendQueueSize();
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123
124 // NOLINTEND
125};
126
127} // namespace webrtc
Definition AnyInvocable.h:8
Definition DataChannelInterface.h:19
Definition DataChannelObserver.h:12
Definition RTCError.h:10
Definition RefCountInterface.h:10
Definition DataBuffer.h:7