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
30class PeerConnectionNegotiator : public ::NetherNet::ContextProxy {
31public:
32 // PeerConnectionNegotiator inner types declare
33 // clang-format off
37 // clang-format on
38
39 // PeerConnectionNegotiator inner types define
40 struct CreateSessionObserver : public ::rtc::RefCountedObject<::webrtc::CreateSessionDescriptionObserver> {
41 public:
42 // member variables
43 // NOLINTBEGIN
45 // NOLINTEND
46
47 public:
48 // prevent constructor by default
49 CreateSessionObserver& operator=(CreateSessionObserver const&);
50 CreateSessionObserver(CreateSessionObserver const&);
51 CreateSessionObserver();
52
53 public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual void OnSuccess(::webrtc::SessionDescriptionInterface* description) /*override*/;
57
58 virtual void OnFailure(::webrtc::RTCError error) /*override*/;
59
60 virtual ~CreateSessionObserver() /*override*/ = default;
61 // NOLINTEND
62
63 public:
64 // virtual function thunks
65 // NOLINTBEGIN
67
68 MCNAPI void $OnFailure(::webrtc::RTCError error);
69
70
71 // NOLINTEND
72
73 public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78 };
79
80 struct SetLocalDescriptionObserver
81 : public ::rtc::RefCountedObject<::webrtc::SetLocalDescriptionObserverInterface> {
82 public:
83 // member variables
84 // NOLINTBEGIN
86 // NOLINTEND
87
88 public:
89 // prevent constructor by default
90 SetLocalDescriptionObserver& operator=(SetLocalDescriptionObserver const&);
91 SetLocalDescriptionObserver(SetLocalDescriptionObserver const&);
92 SetLocalDescriptionObserver();
93
94 public:
95 // virtual functions
96 // NOLINTBEGIN
97 virtual void OnSetLocalDescriptionComplete(::webrtc::RTCError result) /*override*/;
98
99 virtual ~SetLocalDescriptionObserver() /*override*/ = default;
100 // NOLINTEND
101
102 public:
103 // virtual function thunks
104 // NOLINTBEGIN
106
107
108 // NOLINTEND
109
110 public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115 };
116
117 struct SetRemoteDescriptionObserver
118 : public ::rtc::RefCountedObject<::webrtc::SetRemoteDescriptionObserverInterface> {
119 public:
120 // member variables
121 // NOLINTBEGIN
123 // NOLINTEND
124
125 public:
126 // prevent constructor by default
127 SetRemoteDescriptionObserver& operator=(SetRemoteDescriptionObserver const&);
128 SetRemoteDescriptionObserver(SetRemoteDescriptionObserver const&);
129 SetRemoteDescriptionObserver();
130
131 public:
132 // virtual functions
133 // NOLINTBEGIN
134 virtual void OnSetRemoteDescriptionComplete(::webrtc::RTCError result) /*override*/;
135
136 virtual ~SetRemoteDescriptionObserver() /*override*/ = default;
137 // NOLINTEND
138
139 public:
140 // virtual function thunks
141 // NOLINTBEGIN
143
144
145 // NOLINTEND
146
147 public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152 };
153
154public:
155 // member variables
156 // NOLINTBEGIN
166 // NOLINTEND
167
168public:
169 // prevent constructor by default
170 PeerConnectionNegotiator& operator=(PeerConnectionNegotiator const&);
171 PeerConnectionNegotiator(PeerConnectionNegotiator const&);
172 PeerConnectionNegotiator();
173
174public:
175 // virtual functions
176 // NOLINTBEGIN
177 virtual ~PeerConnectionNegotiator() /*override*/;
178
179 virtual ::NetherNet::ESessionError checkTimeout(::std::chrono::seconds) const;
180
181 virtual void onRemoteAnswer(::NetherNet::ConnectResponse const&);
182
183 virtual void onRemoteError(::NetherNet::ConnectError const&);
184
185 virtual void onRemoteIceCandidate(::NetherNet::CandidateAdd const&) = 0;
186
187 virtual void _onCreateSession(::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface*> const&) = 0;
188
189 virtual void _onSetLocalDescription(::webrtc::RTCError) = 0;
190
191 virtual void _onSetRemoteDescription(::webrtc::RTCError) = 0;
192 // NOLINTEND
193
194public:
195 // member functions
196 // NOLINTBEGIN
201 ::brstd::move_only_function<void(::std::variant<
205 ::NetherNet::CandidateAdd> const&) const> sendMessage,
206 uint64 sessionId
207 );
208 // NOLINTEND
209
210public:
211 // constructor thunks
212 // NOLINTBEGIN
213 MCNAPI void* $ctor(
217 ::brstd::move_only_function<void(::std::variant<
221 ::NetherNet::CandidateAdd> const&) const> sendMessage,
222 uint64 sessionId
223 );
224 // NOLINTEND
225
226public:
227 // destructor thunk
228 // NOLINTBEGIN
229 MCNAPI void $dtor();
230 // NOLINTEND
231
232public:
233 // virtual function thunks
234 // NOLINTBEGIN
235 MCNAPI ::NetherNet::ESessionError $checkTimeout(::std::chrono::seconds) const;
236
238
240
241
242 // NOLINTEND
243
244public:
245 // vftables
246 // NOLINTBEGIN
247 MCNAPI static void** $vftable();
248 // NOLINTEND
249};
250
251} // namespace NetherNet
Definition CandidateAdd.h:7
Definition ConnectError.h:7
Definition ConnectRequest.h:12
Definition ConnectResponse.h:12
Definition ContextProxy.h:18
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 PeerConnectionObserver.h:22
Definition move_only_function.h:9
Definition RefCountedObject.h:8
Definition PeerConnectionFactory.h:31
Definition RTCErrorOr.h:8
Definition RTCError.h:10
Definition SessionDescriptionInterface.h:18
Definition scoped_refptr.h:8
Definition PeerConnectionNegotiator.h:40
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