LeviLamina
Loading...
Searching...
No Matches
PacketQueue.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ContextProxy.h"
7#include "mc/deps/nether_net/ESessionError.h"
8#include "mc/external/webrtc/DataChannelObserver.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10#include "mc/platform/brstd/move_only_function.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace webrtc { class DataChannelInterface; }
15namespace webrtc { struct DataBuffer; }
16// clang-format on
17
18namespace NetherNet {
19
20class PacketQueue : public ::NetherNet::ContextProxy {
21public:
22 // PacketQueue inner types declare
23 // clang-format off
24 class DataChannel;
25 // clang-format on
26
27 // PacketQueue inner types define
28 class DataChannel : public ::NetherNet::ContextProxy, public ::webrtc::DataChannelObserver {
29 public:
30 // member variables
31 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 DataChannel& operator=(DataChannel const&);
43 DataChannel(DataChannel const&);
44 DataChannel();
45
46 public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual ~DataChannel() /*override*/;
50
51 virtual void OnStateChange() /*override*/;
52
53 virtual void OnMessage(::webrtc::DataBuffer const& buffer) /*override*/;
54
55 virtual void OnBufferedAmountChange(uint64) /*override*/;
56
57 virtual bool IsOkToCallOnTheNetworkThread() /*override*/;
58 // NOLINTEND
59
60 public:
61 // member functions
62 // NOLINTBEGIN
65 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose,
66 ::brstd::move_only_function<void(uchar const*, uint64)> onData
67 );
68
69 MCNAPI void _trySend();
70
71 MCNAPI void send(uchar const* source, uint64 size);
72
74 // NOLINTEND
75
76 public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCNAPI void* $ctor(
81 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose,
82 ::brstd::move_only_function<void(uchar const*, uint64)> onData
83 );
84 // NOLINTEND
85
86 public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91
92 public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCNAPI void $OnStateChange();
96
98
99 MCNAPI void $OnBufferedAmountChange(uint64);
100
102
103
104 // NOLINTEND
105
106 public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftableForContextProxy();
110
111 MCNAPI static void** $vftableForDataChannelObserver();
112 // NOLINTEND
113 };
114
115public:
116 // member variables
117 // NOLINTBEGIN
122 // NOLINTEND
123
124public:
125 // prevent constructor by default
126 PacketQueue& operator=(PacketQueue const&);
127 PacketQueue(PacketQueue const&);
128 PacketQueue();
129
130public:
131 // virtual functions
132 // NOLINTBEGIN
133 virtual ~PacketQueue() /*override*/ = default;
134 // NOLINTEND
135
136public:
137 // member functions
138 // NOLINTBEGIN
141 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose
142 );
143 // NOLINTEND
144
145public:
146 // constructor thunks
147 // NOLINTBEGIN
148 MCNAPI void*
149 $ctor(::NetherNet::ContextProxy const& ctx, ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose);
150 // NOLINTEND
151
152public:
153 // vftables
154 // NOLINTBEGIN
155 MCNAPI static void** $vftable();
156 // NOLINTEND
157};
158
159} // namespace NetherNet
Definition ContextProxy.h:18
Definition PacketQueue.h:28
MCAPI void $OnBufferedAmountChange(uint64)
MCAPI void send(uchar const *source, uint64 size)
MCAPI void setChannel(::webrtc::scoped_refptr<::webrtc::DataChannelInterface > channel)
MCAPI void $OnMessage(::webrtc::DataBuffer const &buffer)
MCAPI DataChannel(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose, ::brstd::move_only_function< void(uchar const *, uint64)> onData)
static MCAPI void ** $vftableForDataChannelObserver()
static MCAPI void ** $vftableForContextProxy()
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose, ::brstd::move_only_function< void(uchar const *, uint64)> onData)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose)
MCAPI PacketQueue(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose)
Definition move_only_function.h:9
Definition DataChannelInterface.h:19
Definition DataChannelObserver.h:12
Definition scoped_refptr.h:8
Definition buffer.h:5
Definition ctx.h:5
Definition Alias.h:14
Definition DataBuffer.h:7