RPC protocol framing details?

30 views
Skip to first unread message

Jens Alfke

unread,
Dec 16, 2022, 1:07:26 PM12/16/22
to Cap'n Proto
The RPC docs say:

> The Cap'n Proto RPC protocol is defined in terms of Cap'n Proto serialization schemas. The documentation is inline. See rpc.capnp.

That interface definition is beautifully commented, it’s practically Literate Programming, but it’s not the whole story. How are the messages (serialized structs) sent over the wire? Is it as simple as just writing one serialized buffer after another to a byte-stream, or is there an underlying framing protocol?

—Jens

Kenton Varda

unread,
Dec 16, 2022, 1:22:49 PM12/16/22
to Jens Alfke, Cap'n Proto
Yes, the messages are simply written to the wire one after another. Cap'n Proto messages in the standard serialization are self-delimiting, so there's no need for a framing protocol.

-Kenton

--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/D26CD0E2-861D-4EA5-868F-CBD0000B109C%40mooseyard.com.
Reply all
Reply to author
Forward
0 new messages