mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Inspector+LibCore+rpcdump: Rework the RPC stuff to be request/response
RPC clients now send JSON-encoded requests to the RPC server. The connection also stays alive instead of disconnecting automatically after the initial CObject graph dump. JSON payloads are preceded by a single host-order encoded 32-bit int containing the length of the payload. So far, we have three RPC commands: - Identify - GetAllObjects - Disconnect We'll be adding more of these as we go along. :^)
This commit is contained in:
parent
38b75d2a97
commit
f89944e804
5 changed files with 217 additions and 38 deletions
|
@ -41,6 +41,11 @@ int main(int argc, char** argv)
|
|||
|
||||
RemoteProcess remote_process(pid);
|
||||
|
||||
remote_process.on_update = [&] {
|
||||
if (!remote_process.process_name().is_null())
|
||||
window->set_title(String::format("Inspector: %s (%d)", remote_process.process_name().characters(), remote_process.pid()));
|
||||
};
|
||||
|
||||
auto* tree_view = new GTreeView(splitter);
|
||||
tree_view->set_model(remote_process.object_graph_model());
|
||||
tree_view->set_activates_on_selection(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue