MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / RemoteDebuggerPeerTCP

Method RemoteDebuggerPeerTCP

core/debugger/remote_debugger_peer.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87RemoteDebuggerPeerTCP::RemoteDebuggerPeerTCP(Ref<StreamPeerTCP> p_tcp) {
88 // This means remote debugger takes 16 MiB just because it exists...
89 in_buf.resize((8 << 20) + 4); // 8 MiB should be way more than enough (need 4 extra bytes for encoding packet size).
90 out_buf.resize(8 << 20); // 8 MiB should be way more than enough
91 tcp_client = p_tcp;
92 if (tcp_client.is_valid()) { // Attaching to an already connected stream.
93 connected = true;
94 running = true;
95 thread.start(_thread_func, this);
96 } else {
97 tcp_client.instantiate();
98 }
99}
100
101RemoteDebuggerPeerTCP::~RemoteDebuggerPeerTCP() {
102 close();

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.45
is_validMethod · 0.45
startMethod · 0.45
instantiateMethod · 0.45

Tested by

no test coverage detected