Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptDebuggerTransport.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/IDebuggerTransport.h"
7
8class ScriptDebuggerTransport : public ::Scripting::IDebuggerTransport {
9public:
10 // member variables
11 // NOLINTBEGIN
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 ScriptDebuggerTransport& operator=(ScriptDebuggerTransport const&);
22 ScriptDebuggerTransport(ScriptDebuggerTransport const&);
23 ScriptDebuggerTransport();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~ScriptDebuggerTransport() /*override*/ = default;
29
30 virtual bool listen(ushort port) /*override*/;
31
32 virtual bool connect(::std::string const& host, ushort port) /*override*/;
33
34 virtual bool selectClient(::std::string& outClient) /*override*/;
35
36 virtual bool started() const /*override*/;
37
38 virtual bool connected() const /*override*/;
39
40 virtual bool lostConnection() const /*override*/;
41
42 virtual bool readyClose() const /*override*/;
43
44 virtual void close() /*override*/;
45
46 virtual bool peek() const /*override*/;
47
48 virtual bool receive(char* buffer, uint64 length) /*override*/;
49
50 virtual void send(char const* buffer, uint64 length) /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCNAPI bool listen(ushort port, ::std::optional<::std::string> const& bindAddress);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCNAPI bool $listen(ushort port);
63
64 MCNAPI bool $connect(::std::string const& host, ushort port);
65
66 MCNAPI bool $selectClient(::std::string& outClient);
67
68 MCNAPI bool $started() const;
69
70 MCNAPI bool $connected() const;
71
72 MCNAPI bool $lostConnection() const;
73
74 MCNAPI bool $readyClose() const;
75
76 MCNAPI void $close();
77
78 MCNAPI bool $peek() const;
79
80 MCNAPI bool $receive(char* buffer, uint64 length);
81
82 MCNAPI void $send(char const* buffer, uint64 length);
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
MCAPI bool $connected() const
MCAPI void $send(char const *buffer, uint64 length)
MCAPI bool $lostConnection() const
MCAPI bool $receive(char *buffer, uint64 length)
MCAPI bool $selectClient(::std::string &outClient)
MCAPI bool $connect(::std::string const &host, ushort port)
MCAPI bool $started() const
static MCAPI void ** $vftable()
MCAPI bool listen(ushort port, ::std::optional<::std::string > const &bindAddress)
MCAPI bool $peek() const
MCAPI bool $readyClose() const
MCAPI bool $listen(ushort port)
Definition IDebuggerTransport.h:7
Definition buffer.h:5
Definition Alias.h:14