PCP · pcp
PCP Stream — Wire Protocol
Binary framing protocol and Unix socket transport for PCP communication between apps and the daemon.
pcp-streamv0.2.0pcp
2.2K
Lines of Code
115
Tests
13
Files
Architecture
Binary framing over Unix sockets — length-prefixed frames, request/response correlation, streaming support.
Overview
pcp-stream defines the binary wire protocol used for communication between Tier 1 apps and the PCP daemon. It handles message framing (length-prefixed binary frames), request/response correlation (request IDs), and Unix socket transport. This is the low-level transport that pcp-ipc builds on.
Data Flow
PCP request → binary frame → Unix socket → pcpd → response frame → back to app
Dependencies
Internal (2)
External (8)
tokio workspaceserde workspaceserde_json workspacepostcard workspacecrc32fast workspacetracing workspacethiserror workspacechrono workspace
Depends on pcp-core. External: tokio (async I/O), serde (serialization).