How a-sevastyanov/protobridge works
protobridge is a small Python-to-C++ process communication demo. The intended workflow is to construct UserInfo, serialize it with Protobuf, prefix the payload length, send it over TCP, then receive and parse it. The current sender implements sending, while the receiver source only establishes a connection and closes it; README describes exact-length receive and parsing as unfinished. The receiver header declares recv_exact, but its implementation is not present in the supplied tree.
Main entry points: sender.py Sender · receiver.cpp Receiver server · receiver.hpp Exact receive declaration · user.proto UserInfo schema
Components 6
Python sender
- Sender
sender/sender.py
Wire protocol
- UserInfo schema
proto/user.proto - TCP socket
C++ receiver
- Receiver server
receiver/receiver.cpp - Exact receive declaration
receiver/receiver.hpp
Other components
- User process
Connections 5
- User process → Sender: starts
- Sender → UserInfo schema: serializes as
- Sender → TCP socket: sends framed data
- Receiver server → TCP socket: listens and accepts
- Exact receive declaration → Receiver server: declares receive helper