summaryrefslogtreecommitdiff
path: root/Userland/rpcdump.cpp
AgeCommit message (Collapse)Author
2019-09-21LibCore: Convert CLocalSocket to ObjectPtrAndreas Kling
2019-09-11Inspector+LibCore+rpcdump: Rework the RPC stuff to be request/responseAndreas Kling
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. :^)
2019-09-11rpcdump: Don't call CSocket::connect() before setting up hooksAndreas Kling
2019-08-17LibCore+rpcdump: Publish CObject graph to on-demand RPC socketAndreas Kling
All programs that have a CEventLoop now allow local socket connections via /tmp/rpc.PID and will dump a serialized JSON array of all the live CObjects in the program onto connecting sockets. Also added a small /bin/rpcdump tool that connects to an RPC socket and produces a raw dump of the JSON that comes out.