-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider a top-level union message #1
Comments
hi, thanks for the info. We'll definitely check it out. On Fri, May 29, 2015, 06:32 Kenton Varda notifications@github.com wrote:
|
Hi @kentonv, I've just added the |
Cool. BTW, I notice you're representing params and results as |
I guess this will save some cpu time so spent on encoding/decoding structs. I'll leave this issue open, we'll see how bddp is actually used and decide. On Sat, May 30, 2015, 05:35 Kenton Varda notifications@github.com wrote:
|
An |
I notice each of your message types has a comment assigning it a number. Probably what you want is one union message that encapsulates the others:
Now you can define your protocol as "a stream of Message"; no need to encode the type of each message separately. Notice that the field numbers in the union are the IDs; you don't have to define numeric type IDs separately.
You might want to look at Cap'n Proto's own rpc.capnp for more inspiration.
The text was updated successfully, but these errors were encountered: