LeviLamina
Loading...
Searching...
No Matches
ScriptNativeWebSocketFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/deps/script_core/script_engine/scripting/Promise.h"
8
9// auto generated forward declare list
10// clang-format off
11class TaskGroup;
12namespace Bedrock::Http { class HeaderCollection; }
13namespace ScriptModuleMinecraftNet { class ScriptInternalWebSocketError; }
14namespace ScriptModuleMinecraftNet { class ScriptMalformedUriError; }
15namespace ScriptModuleMinecraftNet { class ScriptNativeWebSocket; }
16namespace ScriptModuleMinecraftNet { class ScriptTLSOnlyError; }
17namespace ScriptModuleMinecraftNet { class ScriptUriNotAllowedError; }
18namespace ScriptModuleMinecraftNet { class ScriptWebSocketClient; }
19namespace ScriptModuleMinecraftNet { class ScriptWebSocketConnectionFailedError; }
20namespace ScriptModuleMinecraftNet { class ScriptWebSocketLimitExceededError; }
21// clang-format on
22
23namespace ScriptModuleMinecraftNet {
24
25class ScriptNativeWebSocketFactory {
26public:
27 // ScriptNativeWebSocketFactory inner types declare
28 // clang-format off
29 struct PendingConnection;
30 // clang-format on
31
32 // ScriptNativeWebSocketFactory inner types define
33 struct PendingConnection {
34 public:
35 // member variables
36 // NOLINTBEGIN
40 // NOLINTEND
41
42 public:
43 // prevent constructor by default
44 PendingConnection& operator=(PendingConnection const&);
45 PendingConnection(PendingConnection const&);
46 PendingConnection();
47 };
48
49public:
50 // member variables
51 // NOLINTBEGIN
54 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 ScriptNativeWebSocketFactory& operator=(ScriptNativeWebSocketFactory const&);
59 ScriptNativeWebSocketFactory(ScriptNativeWebSocketFactory const&);
60 ScriptNativeWebSocketFactory();
61
62public:
63 // member functions
64 // NOLINTBEGIN
67 ::std::shared_ptr<::ScriptModuleMinecraftNet::ScriptNativeWebSocket> socket,
68 ::std::string const& uri,
70 ::gsl::not_null<::TaskGroup*> taskGroup,
79 );
80
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCNAPI void $dtor();
88 // NOLINTEND
89};
90
91} // namespace ScriptModuleMinecraftNet
Definition HeaderCollection.h:7
Definition ScriptInternalWebSocketError.h:15
Definition ScriptMalformedUriError.h:15
MCAPI void queueSocketConnection(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptWebSocketClient > &scriptSocket, ::std::shared_ptr<::ScriptModuleMinecraftNet::ScriptNativeWebSocket > socket, ::std::string const &uri, ::Bedrock::Http::HeaderCollection headers, ::gsl::not_null<::TaskGroup * > taskGroup, ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptWebSocketClient >, ::ScriptModuleMinecraftNet::ScriptWebSocketConnectionFailedError, ::ScriptModuleMinecraftNet::ScriptInternalWebSocketError, ::ScriptModuleMinecraftNet::ScriptWebSocketLimitExceededError, ::ScriptModuleMinecraftNet::ScriptMalformedUriError, ::ScriptModuleMinecraftNet::ScriptTLSOnlyError, ::ScriptModuleMinecraftNet::ScriptUriNotAllowedError > &promise)
Definition ScriptNativeWebSocket.h:11
Definition ScriptTLSOnlyError.h:15
Definition ScriptUriNotAllowedError.h:15
Definition ScriptWebSocketClient.h:16
Definition ScriptWebSocketConnectionFailedError.h:16
Definition ScriptWebSocketLimitExceededError.h:15
Definition Promise.h:8
Definition StrongTypedObjectHandle.h:8
Definition TaskGroup.h:86
Definition Alias.h:14