LeviLamina
Loading...
Searching...
No Matches
ClientNegotiator.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/Result.h"
12#include "mc/platform/brstd/move_only_function.h"
13
14// auto generated forward declare list
15// clang-format off
16namespace NetherNet { class CandidateAdd; }
17namespace NetherNet { class ConnectError; }
18namespace NetherNet { class ConnectRequest; }
19namespace NetherNet { class ConnectResponse; }
20namespace NetherNet { class ContextProxy; }
21namespace NetherNet { class PeerConnectionObserver; }
22namespace webrtc { class IceCandidateInterface; }
23namespace webrtc { class PeerConnectionFactory; }
24namespace webrtc { class PeerConnectionInterface; }
25namespace webrtc { class RTCError; }
26namespace webrtc { class SessionDescriptionInterface; }
27// clang-format on
28
29namespace NetherNet {
30
32public:
33 // member variables
34 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 ClientNegotiator& operator=(ClientNegotiator const&);
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 10
52 virtual ::NetherNet::ESessionError checkTimeout(::std::chrono::seconds timeout) const /*override*/;
53
54 // vIndex: 14
55 virtual void
56 _onCreateSession(::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface*> const& offerOrError) /*override*/;
57
58 // vIndex: 15
59 virtual void _onSetLocalDescription(::webrtc::RTCError result) /*override*/;
60
61 // vIndex: 11
62 virtual void onRemoteAnswer(::NetherNet::ConnectResponse const& answer) /*override*/;
63
64 // vIndex: 12
65 virtual void onRemoteError(::NetherNet::ConnectError const& error) /*override*/;
66
67 // vIndex: 16
68 virtual void _onSetRemoteDescription(::webrtc::RTCError result) /*override*/;
69
70 // vIndex: 17
71 virtual void _onLocalIceCandidate(::webrtc::IceCandidateInterface const* iceCandidate);
72
73 // vIndex: 13
74 virtual void onRemoteIceCandidate(::NetherNet::CandidateAdd const& candidate) /*override*/;
75
76 // vIndex: 0
77 virtual ~ClientNegotiator() /*override*/;
78 // NOLINTEND
79
80public:
81 // member functions
82 // NOLINTBEGIN
87 ::brstd::move_only_function<void(::std::variant<
91 ::NetherNet::CandidateAdd> const&) const> sendMessage,
92 uint64 sessionId
93 );
94
95 MCNAPI void _onIceConnectionChanged(::webrtc::PeerConnectionInterface::IceConnectionState newState);
96
97 MCNAPI void createOffer(
101 )>&& onComplete
102 );
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCNAPI void* $ctor(
112 ::brstd::move_only_function<void(::std::variant<
116 ::NetherNet::CandidateAdd> const&) const> sendMessage,
117 uint64 sessionId
118 );
119 // NOLINTEND
120
121public:
122 // destructor thunk
123 // NOLINTBEGIN
124 MCNAPI void $dtor();
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCNAPI ::NetherNet::ESessionError $checkTimeout(::std::chrono::seconds timeout) const;
131
133
135
137
138 MCNAPI void $onRemoteError(::NetherNet::ConnectError const& error);
139
141
143
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152};
153
154} // namespace NetherNet
Definition Result.h:9
Definition CandidateAdd.h:7
Definition ClientNegotiator.h:31
MCAPI void $_onCreateSession(::webrtc::RTCErrorOr<::webrtc::SessionDescriptionInterface * > const &offerOrError)
static MCAPI void ** $vftable()
MCAPI void $onRemoteError(::NetherNet::ConnectError const &error)
MCAPI::NetherNet::ESessionError $checkTimeout(::std::chrono::seconds timeout) const
MCAPI void _onIceConnectionChanged(::webrtc::PeerConnectionInterface::IceConnectionState newState)
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)
MCAPI void $onRemoteIceCandidate(::NetherNet::CandidateAdd const &candidate)
MCAPI void createOffer(::webrtc::PeerConnectionInterface::RTCConfiguration const &config, ::brstd::move_only_function< void(::Bedrock::Result<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface >, ::NetherNet::ESessionError >)> &&onComplete)
MCAPI void $onRemoteAnswer(::NetherNet::ConnectResponse const &answer)
MCAPI void $_onSetRemoteDescription(::webrtc::RTCError result)
MCAPI void $_onSetLocalDescription(::webrtc::RTCError result)
MCAPI void $_onLocalIceCandidate(::webrtc::IceCandidateInterface const *iceCandidate)
MCAPI ClientNegotiator(::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)
Definition ConnectError.h:7
Definition ConnectRequest.h:12
Definition ConnectResponse.h:12
Definition ContextProxy.h:18
Definition PeerConnectionNegotiator.h:30
Definition move_only_function.h:9
Definition IceCandidateInterface.h:12
Definition RTCErrorOr.h:8
Definition RTCError.h:10
Definition scoped_refptr.h:8
Definition ctx.h:5
Definition Alias.h:14
Definition PeerConnectionInterface.h:193