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
21public:
22 // PacketQueue inner types declare
23 // clang-format off
24 class DataChannel;
25 // clang-format on
26
27 // PacketQueue inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 DataChannel& operator=(DataChannel const&);
45
46 public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 4
50 virtual ~DataChannel() /*override*/;
51
52 // vIndex: 0
53 virtual void OnStateChange() /*override*/;
54
55 // vIndex: 1
56 virtual void OnMessage(::webrtc::DataBuffer const& buffer) /*override*/;
57
58 // vIndex: 2
59 virtual void OnBufferedAmountChange(uint64) /*override*/;
60
61 // vIndex: 3
62 virtual bool IsOkToCallOnTheNetworkThread() /*override*/;
63 // NOLINTEND
64
65 public:
66 // member functions
67 // NOLINTBEGIN
70 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose,
71 ::brstd::move_only_function<void(uchar const*, uint64)> onData
72 );
73
74 MCNAPI void _trySend();
75
76 MCNAPI void send(uchar const* source, uint64 size);
77
79 // NOLINTEND
80
81 public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCNAPI void* $ctor(
86 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose,
87 ::brstd::move_only_function<void(uchar const*, uint64)> onData
88 );
89 // NOLINTEND
90
91 public:
92 // destructor thunk
93 // NOLINTBEGIN
94 MCNAPI void $dtor();
95 // NOLINTEND
96
97 public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCNAPI void $OnStateChange();
101
103
104 MCNAPI void $OnBufferedAmountChange(uint64);
105
107 // NOLINTEND
108
109 public:
110 // vftables
111 // NOLINTBEGIN
112 MCNAPI static void** $vftableForContextProxy();
113
114 MCNAPI static void** $vftableForDataChannelObserver();
115 // NOLINTEND
116 };
117
118public:
119 // member variables
120 // NOLINTBEGIN
125 // NOLINTEND
126
127public:
128 // prevent constructor by default
129 PacketQueue& operator=(PacketQueue const&);
130 PacketQueue(PacketQueue const&);
131 PacketQueue();
132
133public:
134 // virtual functions
135 // NOLINTBEGIN
136 // vIndex: 0
137 virtual ~PacketQueue() /*override*/ = default;
138 // NOLINTEND
139
140public:
141 // member functions
142 // NOLINTBEGIN
145 ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose
146 );
147 // NOLINTEND
148
149public:
150 // constructor thunks
151 // NOLINTBEGIN
152 MCNAPI void*
153 $ctor(::NetherNet::ContextProxy const& ctx, ::brstd::move_only_function<void(::NetherNet::ESessionError)> onClose);
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCNAPI static void** $vftable();
160 // NOLINTEND
161};
162
163} // 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)
Definition PacketQueue.h:20
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 DataChannelObserver.h:12
Definition scoped_refptr.h:8
Definition buffer.h:5
Definition ctx.h:5
Definition Alias.h:14
Definition DataBuffer.h:7