| 85 | } |
| 86 | |
| 87 | RemoteDebuggerPeerTCP::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 | |
| 101 | RemoteDebuggerPeerTCP::~RemoteDebuggerPeerTCP() { |
| 102 | close(); |
nothing calls this directly
no test coverage detected