Skip to content
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

文档协议不太清楚,能不能补充一下, doc.rpcx.io/part5/protocol.html #891

Open
icetech233 opened this issue Feb 19, 2025 · 3 comments

Comments

@icetech233
Copy link

https://doc.rpcx.io/part5/protocol.html

#4 + #6 + #8 + #10 + (4 + 4 + 4 + 4) 的字节数加起来等于 #3的值。

为啥会额外的 (4 + 4 + 4 + 4) ??

是不是别的语言客户端 tcp 请求 这个报文也能正确的相应啊!

ctx context.Context 里面的数据,是放在 metadata 里面的吗?

@smallnest
Copy link
Owner

(4+4+4+4) 这四个4指的是长度的长度,

下面红框的长度和

Image

ctx context.Context 里面的数据,是放在 metadata 里面的吗?

是。

等我这周写一篇文章,画一个更清晰的图。

是不是别的语言客户端 tcp 请求 这个报文也能正确的相应啊!
是的。曾经有php、java、rust的客户端,不过都缺乏维护,比如 rpcx-rs
https://github.com/smallnest/rpcx-rs/blob/master/examples/client_call_mul/src/main.rs

@icetech233
Copy link
Author

ctx context.Context 是什么方式序列化的呢?

@icetech233
Copy link
Author

(4+4+4+4) 这四个4指的是长度的长度,

下面红框的长度和

Image

ctx context.Context 里面的数据,是放在 metadata 里面的吗?

是。

等我这周写一篇文章,画一个更清晰的图。

是不是别的语言客户端 tcp 请求 这个报文也能正确的相应啊!
是的。曾经有php、java、rust的客户端,不过都缺乏维护,比如 rpcx-rs
https://github.com/smallnest/rpcx-rs/blob/master/examples/client_call_mul/src/main.rs

我懂了, 就是自己本身的长度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants