LeviLamina
Loading...
Searching...
No Matches
PeerConnectionNegotiator.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/rtc/RefCountedObject.h"
9#include "mc/external/webrtc/CreateSessionDescriptionObserver.h"
10#include "mc/external/webrtc/RTCErrorOr.h"
11#include "mc/external/webrtc/SetLocalDescriptionObserverInterface.h"
12#include "mc/external/webrtc/SetRemoteDescriptionObserverInterface.h"
13#include "mc/external/webrtc/scoped_refptr.h"
14#include "mc/platform/brstd/move_only_function.h"
15
16// auto generated forward declare list
17// clang-format off
18namespace NetherNet { class CandidateAdd; }
19namespace NetherNet { class ConnectError; }
20namespace NetherNet { class ConnectRequest; }
21namespace NetherNet { class ConnectResponse; }
22namespace NetherNet { class PeerConnectionObserver; }
23namespace webrtc { class PeerConnectionFactory; }
24namespace webrtc { class RTCError; }
25namespace webrtc { class SessionDescriptionInterface; }
26// clang-format on
27
28namespace NetherNet {
29
31public:
32 // PeerConnectionNegotiator inner types declare
33 // clang-format off
37 // clang-format on
38
39 // PeerConnectionNegotiator inner types define
41 : public ::rtc::RefCountedObject<::webrtc::SetLocalDescriptionObserverInterface> {
42 public:
43 // member variables
44 // NOLINTBEGIN
46 // NOLINTEND
47
48 public:
49 // prevent constructor by default
53
54 public:
55 // virtual functions
56 // NOLINTBEGIN
57 // vIndex: 3
58 virtual void OnSetLocalDescriptionComplete(::webrtc::RTCError result) /*override*/;
59
60 // vIndex: 2
61 virtual ~SetLocalDescriptionObserver() /*override*/ = default;
62 // NOLINTEND
63
64 public:
65 // virtual function thunks
66 // NOLINTBEGIN
68 // NOLINTEND
69
70 public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75 };
76
78 : public ::rtc::RefCountedObject<::webrtc::SetRemoteDescriptionObserverInterface> {
79 public:
80 // member variables
81 // NOLINTBEGIN
83 // NOLINTEND
84
85 public:
86 // prevent constructor by default
90
91 public:
92 // virtual functions
93 // NOLINTBEGIN
94 // vIndex: 3
95 virtual void OnSetRemoteDescriptionComplete(::webrtc::RTCError result) /*override*/;
96
97 // vIndex: 2
98 virtual ~SetRemoteDescriptionObserver() /*override*/ = default;
99 // NOLINTEND
100
101 public:
102 // virtual function thunks
103 // NOLINTBEGIN
105 // NOLINTEND
106
107 public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112 };
113
114 struct CreateSessionObserver : public ::rtc::RefCountedObject<::webrtc::CreateSessionDescriptionObserver> {
115 public:
116 // member variables
117 // NOLINTBEGIN
119 // NOLINTEND
120
121 public:
122 // prevent constructor by default
126
127 public:
128 // virtual functions
129 // NOLINTBEGIN
130 // vIndex: 3
131 virtual void OnSuccess(::webrtc::SessionDescriptionInterface* description) /*override*/;
132
133 // vIndex: 4
134 virtual void OnFailure(::webrtc::RTCError error) /*override*/;
135
136 // vIndex: 2
137 virtual ~CreateSessionObserver() /*override*/ = default;
138 // NOLINTEND
139
140 public:
141 // virtual function thunks
142 // NOLINTBEGIN
144
145 MCNAPI void $OnFailure(::webrtc::RTCError error);
146 // NOLINTEND
147
148 public:
149 // vftables
150 // NOLINTBEGIN
151 MCNAPI static void** $vftable();
152 // NOLINTEND
153 };
154
155public:
156 // member variables
157 // NOLINTBEGIN
167 // NOLINTEND
168
169public:
170 // prevent constructor by default
174
175public:
176 // virtual functions
177 // NOLINTBEGIN
178 // vIndex: 0
179 virtual ~PeerConnectionNegotiator() /*override*/;
180
181 // vIndex: 10
182 virtual ::NetherNet::ESessionError checkTimeout(::std::chrono::seconds) const;
183
184 // vIndex: 11
185 virtual void onRemoteAnswer(::NetherNet::ConnectResponse const&);
186
187 // vIndex: 12
188 virtual void onRemoteError(::NetherNet::ConnectError const&);
189
190 // vIndex: 13
191 virtual void onRemoteIceCandidate(::NetherNet::CandidateAdd const&) = 0;
192
193 // vIndex: 14
194 virtual void _onCreateSession(::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface*> const&) = 0;
195
196 // vIndex: 15
197 virtual void _onSetLocalDescription(::webrtc::RTCError) = 0;
198
199 // vIndex: 16
200 virtual void _onSetRemoteDescription(::webrtc::RTCError) = 0;
201 // NOLINTEND
202
203public:
204 // member functions
205 // NOLINTBEGIN
210 ::brstd::move_only_function<void(::std::variant<
214 ::NetherNet::CandidateAdd> const&) const> sendMessage,
215 uint64 sessionId
216 );
217 // NOLINTEND
218
219public:
220 // constructor thunks
221 // NOLINTBEGIN
222 MCNAPI void* $ctor(
226 ::brstd::move_only_function<void(::std::variant<
230 ::NetherNet::CandidateAdd> const&) const> sendMessage,
231 uint64 sessionId
232 );
233 // NOLINTEND
234
235public:
236 // destructor thunk
237 // NOLINTBEGIN
238 MCNAPI void $dtor();
239 // NOLINTEND
240
241public:
242 // virtual function thunks
243 // NOLINTBEGIN
244 MCNAPI ::NetherNet::ESessionError $checkTimeout(::std::chrono::seconds) const;
245
247
249 // NOLINTEND
250
251public:
252 // vftables
253 // NOLINTBEGIN
254 MCNAPI static void** $vftable();
255 // NOLINTEND
256};
257
258} // namespace NetherNet
Definition CandidateAdd.h:7
Definition ConnectError.h:7
Definition ConnectRequest.h:12
Definition ConnectResponse.h:12
Definition ContextProxy.h:18
Definition PeerConnectionNegotiator.h:30
MCAPI::NetherNet::ESessionError $checkTimeout(::std::chrono::seconds) const
MCAPI void $onRemoteError(::NetherNet::ConnectError const &)
MCAPI void $onRemoteAnswer(::NetherNet::ConnectResponse const &)
MCAPI PeerConnectionNegotiator(::NetherNet::ContextProxy const &ctx, ::webrtc::scoped_refptr<::webrtc::PeerConnectionFactory > factory, ::webrtc::scoped_refptr<::NetherNet::PeerConnectionObserver > observer, ::brstd::move_only_function< void(::std::variant< ::NetherNet::ConnectRequest, ::NetherNet::ConnectResponse, ::NetherNet::ConnectError, ::NetherNet::CandidateAdd > const &) const > sendMessage, uint64 sessionId)
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx, ::webrtc::scoped_refptr<::webrtc::PeerConnectionFactory > factory, ::webrtc::scoped_refptr<::NetherNet::PeerConnectionObserver > observer, ::brstd::move_only_function< void(::std::variant< ::NetherNet::ConnectRequest, ::NetherNet::ConnectResponse, ::NetherNet::ConnectError, ::NetherNet::CandidateAdd > const &) const > sendMessage, uint64 sessionId)
static MCAPI void ** $vftable()
Definition move_only_function.h:9
Definition RefCountedObject.h:8
Definition RTCErrorOr.h:8
Definition RTCError.h:10
Definition SessionDescriptionInterface.h:18
Definition scoped_refptr.h:8
Definition PeerConnectionNegotiator.h:114
MCAPI void $OnFailure(::webrtc::RTCError error)
MCAPI void $OnSuccess(::webrtc::SessionDescriptionInterface *description)
MCAPI void $OnSetLocalDescriptionComplete(::webrtc::RTCError result)
MCAPI void $OnSetRemoteDescriptionComplete(::webrtc::RTCError result)
Definition ctx.h:5
Definition Alias.h:14