LeviLamina
Loading...
Searching...
No Matches
ServerNegotiator.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/nether_net/ESessionError.h"
7
#include "mc/deps/nether_net/PeerConnectionNegotiator.h"
8
#include "mc/external/webrtc/PeerConnectionInterface.h"
9
#include "mc/external/webrtc/RTCErrorOr.h"
10
#include "mc/external/webrtc/scoped_refptr.h"
11
#include "mc/platform/ErrorInfo.h"
12
#include "mc/platform/Result.h"
13
#include "mc/platform/brstd/move_only_function.h"
14
15
// auto generated forward declare list
16
// clang-format off
17
namespace
NetherNet {
class
CandidateAdd
; }
18
namespace
NetherNet {
class
ConnectError
; }
19
namespace
NetherNet {
class
ConnectRequest
; }
20
namespace
NetherNet {
class
ConnectResponse
; }
21
namespace
NetherNet {
class
ContextProxy
; }
22
namespace
NetherNet {
class
PeerConnectionObserver
; }
23
namespace
webrtc {
class
IceCandidate
; }
24
namespace
webrtc {
class
PeerConnectionFactory
; }
25
namespace
webrtc {
class
PeerConnectionInterface
; }
26
namespace
webrtc {
class
RTCError
; }
27
namespace
webrtc {
class
SessionDescriptionInterface
; }
28
// clang-format on
29
30
namespace
NetherNet {
31
32
class
ServerNegotiator :
public
::NetherNet::PeerConnectionNegotiator
{
33
public
:
34
// member variables
35
// NOLINTBEGIN
36
::ll::UntypedStorage<8, 16>
mUnk8986cb;
37
::ll::UntypedStorage<8, 16>
mUnk57dd8b;
38
::ll::UntypedStorage<8, 64>
mUnkd02d39;
39
::ll::UntypedStorage<8, 24>
mUnk6790c6;
40
// NOLINTEND
41
42
public
:
43
// prevent constructor by default
44
ServerNegotiator& operator=(ServerNegotiator
const
&);
45
ServerNegotiator(ServerNegotiator
const
&);
46
ServerNegotiator();
47
48
public
:
49
// virtual functions
50
// NOLINTBEGIN
51
virtual
void
createAnswer(
52
::webrtc::PeerConnectionInterface::RTCConfiguration
const
& config,
53
::NetherNet::ConnectRequest
const
& offer,
54
::brstd::move_only_function
<
void
(
55
::Bedrock::Result
<
::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>
, ::NetherNet::ESessionError>
56
)>&& onComplete
57
);
58
59
virtual
void
_onSetRemoteDescription(
::webrtc::RTCError
result)
/*override*/
;
60
61
virtual
void
62
_onCreateSession(
::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface*>
const
& answerOrError)
/*override*/
;
63
64
virtual
void
_onSetLocalDescription(
::webrtc::RTCError
result)
/*override*/
;
65
66
virtual
void
_onLocalIceCandidate(
::webrtc::IceCandidate
const
* iceCandidate);
67
68
virtual
void
onRemoteIceCandidate(
::NetherNet::CandidateAdd
const
& candidate)
/*override*/
;
69
// NOLINTEND
70
71
public
:
72
// member functions
73
// NOLINTBEGIN
74
MCAPI ServerNegotiator(
75
::NetherNet::ContextProxy
const
&
ctx
,
76
::webrtc::scoped_refptr<::webrtc::PeerConnectionFactory>
factory,
77
::webrtc::scoped_refptr<::NetherNet::PeerConnectionObserver>
observer,
78
::brstd::move_only_function
<
void
(::std::variant<
79
::NetherNet::ConnectRequest
,
80
::NetherNet::ConnectResponse
,
81
::NetherNet::ConnectError
,
82
::NetherNet::CandidateAdd
>
const
&)
const
> sendMessage,
83
uint64 sessionId
84
);
85
86
MCAPI
void
_completeWithError(
::Bedrock::ErrorInfo<::NetherNet::ESessionError>
error);
87
88
MCAPI
void
_onIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState);
89
// NOLINTEND
90
91
public
:
92
// constructor thunks
93
// NOLINTBEGIN
94
MCAPI
void
* $ctor(
95
::NetherNet::ContextProxy
const
&
ctx
,
96
::webrtc::scoped_refptr<::webrtc::PeerConnectionFactory>
factory,
97
::webrtc::scoped_refptr<::NetherNet::PeerConnectionObserver>
observer,
98
::brstd::move_only_function
<
void
(::std::variant<
99
::NetherNet::ConnectRequest
,
100
::NetherNet::ConnectResponse
,
101
::NetherNet::ConnectError
,
102
::NetherNet::CandidateAdd
>
const
&)
const
> sendMessage,
103
uint64 sessionId
104
);
105
// NOLINTEND
106
107
public
:
108
// virtual function thunks
109
// NOLINTBEGIN
110
MCAPI
void
$createAnswer(
111
::webrtc::PeerConnectionInterface::RTCConfiguration
const
& config,
112
::NetherNet::ConnectRequest
const
& offer,
113
::brstd::move_only_function
<
void
(
114
::Bedrock::Result
<
::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>
, ::NetherNet::ESessionError>
115
)>&& onComplete
116
);
117
118
MCAPI
void
$_onSetRemoteDescription(
::webrtc::RTCError
result);
119
120
MCAPI
void
$_onCreateSession(
::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface*>
const
& answerOrError);
121
122
MCAPI
void
$_onSetLocalDescription(
::webrtc::RTCError
result);
123
124
MCAPI
void
$_onLocalIceCandidate(
::webrtc::IceCandidate
const
* iceCandidate);
125
126
MCAPI
void
$onRemoteIceCandidate(
::NetherNet::CandidateAdd
const
& candidate);
127
128
129
// NOLINTEND
130
};
131
132
}
// namespace NetherNet
Bedrock::Result
Definition
Result.h:9
NetherNet::CandidateAdd
Definition
CandidateAdd.h:7
NetherNet::ConnectError
Definition
ConnectError.h:7
NetherNet::ConnectRequest
Definition
ConnectRequest.h:7
NetherNet::ConnectResponse
Definition
ConnectResponse.h:7
NetherNet::ContextProxy
Definition
ContextProxy.h:18
NetherNet::PeerConnectionNegotiator
Definition
PeerConnectionNegotiator.h:30
NetherNet::PeerConnectionObserver
Definition
PeerConnectionObserver.h:22
brstd::move_only_function
Definition
move_only_function.h:9
webrtc::IceCandidate
Definition
IceCandidate.h:12
webrtc::PeerConnectionFactory
Definition
PeerConnectionFactory.h:32
webrtc::PeerConnectionInterface
Definition
PeerConnectionInterface.h:57
webrtc::RTCErrorOr
Definition
RTCErrorOr.h:8
webrtc::RTCError
Definition
RTCError.h:10
webrtc::SessionDescriptionInterface
Definition
SessionDescriptionInterface.h:17
webrtc::scoped_refptr
Definition
scoped_refptr.h:8
Bedrock::ErrorInfo
Definition
ErrorInfo.h:9
ctx
Definition
ctx.h:5
ll::UntypedStorage
Definition
Alias.h:14
webrtc::PeerConnectionInterface::RTCConfiguration
Definition
PeerConnectionInterface.h:174
src
mc
deps
nether_net
ServerNegotiator.h
Generated on
for LeviLamina by
1.16.1