Re: [capnproto] RPC protocol framing details?

2022-12-16 Thread 'Kenton Varda' via 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

On Fri, Dec 16, 2022 at 12:07 PM Jens Alfke  wrote:

> 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
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/capnproto/D26CD0E2-861D-4EA5-868F-CBDB109C%40mooseyard.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/CAJouXQ%3D5PTGuRdeEVyyPG5RLJCy2UFy7%3DwsxBfsu0QPepOCAZg%40mail.gmail.com.


[capnproto] RPC protocol framing details?

2022-12-16 Thread Jens Alfke
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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/D26CD0E2-861D-4EA5-868F-CBDB109C%40mooseyard.com.