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 virtual void RegisterObserver(::webrtc::DataChannelObserver*) = 0;
33
34 virtual void UnregisterObserver() = 0;
35
36 virtual ::std::string label() const = 0;
37
38 virtual bool reliable() const = 0;
39
40 virtual bool ordered() const;
41
42 virtual ushort maxRetransmitTime() const;
43
44 virtual ushort maxRetransmits() const;
45
46 virtual ::std::optional<int> maxRetransmitsOpt() const;
47
48 virtual ::std::optional<int> maxPacketLifeTime() const;
49
50 virtual ::std::string protocol() const;
51
52 virtual bool negotiated() const;
53
54 virtual int id() const = 0;
55
56 virtual ::webrtc::Priority priority() const;
57
58 virtual ::webrtc::DataChannelInterface::DataState state() const = 0;
59
60 virtual ::webrtc::RTCError error() const;
61
62 virtual uint messages_sent() const = 0;
63
64 virtual uint64 bytes_sent() const = 0;
65
66 virtual uint64 bytes_send_buffer() const = 0;
67
68 virtual uint messages_received() const = 0;
69
70 virtual uint64 bytes_received() const = 0;
71
72 virtual uint64 buffered_amount() const = 0;
73
74 virtual void Close() = 0;
75
76 virtual bool Send(::webrtc::DataBuffer const&);
77
78 virtual void SendAsync(::webrtc::DataBuffer, ::absl::AnyInvocable<void(::webrtc::RTCError) &&>);
79
80 virtual ~DataChannelInterface() /*override*/;
81 // NOLINTEND
82
83public:
84 // static functions
85 // NOLINTBEGIN
86 MCNAPI static uint64 MaxSendQueueSize();
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCNAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98
99 // NOLINTEND
100};
101
102} // namespace webrtc
Definition AnyInvocable.h:8
Definition DataChannelInterface.h:19
static MCAPI uint64 MaxSendQueueSize()
Definition DataChannelObserver.h:12
Definition RTCError.h:10
Definition RefCountInterface.h:10
Definition DataBuffer.h:7