mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibCore+Inspector: Reverse the direction of Inspector connections
Core::EventLoop now makes an outbound connection to InspectorServer instead of listening for incoming connections on a /tmp/rpc/PID socket. This has many benefits, for example: - We no longer keep an open listening socket in most applications - We stop leaking socket files in /tmp/rpc - We can tighten the pledges in many programs (patch coming)
This commit is contained in:
parent
3d3a5b431f
commit
dc25a4e249
6 changed files with 77 additions and 121 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
namespace Inspector {
|
||||
|
||||
class InspectorServerClient;
|
||||
class RemoteObjectGraphModel;
|
||||
class RemoteObject;
|
||||
|
||||
|
@ -19,6 +20,7 @@ public:
|
|||
static RemoteProcess& the();
|
||||
|
||||
explicit RemoteProcess(pid_t);
|
||||
~RemoteProcess();
|
||||
void update();
|
||||
|
||||
pid_t pid() const { return m_pid; }
|
||||
|
@ -42,8 +44,8 @@ private:
|
|||
pid_t m_pid { -1 };
|
||||
String m_process_name;
|
||||
NonnullRefPtr<RemoteObjectGraphModel> m_object_graph_model;
|
||||
RefPtr<Core::LocalSocket> m_socket;
|
||||
NonnullOwnPtrVector<RemoteObject> m_roots;
|
||||
RefPtr<InspectorServerClient> m_client;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue